staging:wlan-ng: cleanup hfa384x_ctlxout_callback
authorDevendra Naga <devendra.aaru@gmail.com>
Sun, 9 Sep 2012 13:10:54 +0000 (18:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2012 22:42:51 +0000 (15:42 -0700)
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>
drivers/staging/wlan-ng/hfa384x_usb.c

index 01a20d5ba6d702395c99ad919df63d3cff522273..25dd2639805cfefabc4ad390e625ff6a3f3dd69c 100644 (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:
-       ;
 }
 
 /*----------------------------------------------------------------