Commit 89e6302c authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

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: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3f514258
......@@ -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 @@ static void hfa384x_ctlxout_callback(struct urb *urb)
*/
if (list_empty(&hw->ctlxq.active)) {
spin_unlock_irqrestore(&hw->ctlxq.lock, flags);
goto done;
return;
}
/*
......@@ -3886,9 +3886,6 @@ static void hfa384x_ctlxout_callback(struct urb *urb)
if (run_queue)
hfa384x_usbctlxq_run(hw);
done:
;
}
/*----------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment