staging:wlan-ng: cleanup hfa384x_ctlxout_callback

goto done is not required and actually having goto done does
jumps the program to end of the function and calls return.
instead call return directly

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Devendra Naga 2012-09-09 18:40:54 +05:30 committed by Greg Kroah-Hartman
parent 3f51425830
commit 89e6302ce7
1 changed files with 2 additions and 5 deletions

View File

@ -3790,7 +3790,7 @@ static void hfa384x_ctlxout_callback(struct urb *urb)
#endif
if ((urb->status == -ESHUTDOWN) ||
(urb->status == -ENODEV) || (hw == NULL))
goto done;
return;
retry:
spin_lock_irqsave(&hw->ctlxq.lock, flags);
@ -3803,7 +3803,7 @@ retry:
*/
if (list_empty(&hw->ctlxq.active)) {
spin_unlock_irqrestore(&hw->ctlxq.lock, flags);
goto done;
return;
}
/*
@ -3886,9 +3886,6 @@ delresp:
if (run_queue)
hfa384x_usbctlxq_run(hw);
done:
;
}
/*----------------------------------------------------------------