staging: usbip: remove redundant return statements
authorMax Vozeler <max@hinterhof.net>
Mon, 28 Jul 2014 11:28:10 +0000 (13:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:39:34 +0000 (16:39 -0700)
Remove redundant return statements at the end of void functions. This
addresses the checkpatch.pl warnings:

WARNING: void function return statements are not generally useful

Signed-off-by: Max Vozeler <max@hinterhof.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/stub_rx.c
drivers/staging/usbip/vhci_hcd.c
drivers/staging/usbip/vhci_rx.c

index e0b6d6b42728c9e8800fcb6885d0c2b80ad906dd..00e475c51a120f6a67532b3786044bb59cedf0f6 100644 (file)
@@ -529,7 +529,6 @@ static void stub_recv_cmd_submit(struct stub_device *sdev,
        }
 
        usbip_dbg_stub_rx("Leave\n");
-       return;
 }
 
 /* recv a pdu */
index e21c1b4d09ed5b3330e84183b10ee068ee9b5443..c02374b6049c5f17e070dce2c17acdd7c788415c 100644 (file)
@@ -1121,7 +1121,6 @@ static struct platform_driver vhci_driver = {
  */
 static void the_pdev_release(struct device *dev)
 {
-       return;
 }
 
 static struct platform_device the_pdev = {
index d07fcb5ee93a8677c20aa63dd5eff6771b14c2f6..00e4a54308e430f283f053865853089566c823d7 100644 (file)
@@ -111,8 +111,6 @@ static void vhci_recv_ret_submit(struct vhci_device *vdev,
        usb_hcd_giveback_urb(vhci_to_hcd(the_controller), urb, urb->status);
 
        usbip_dbg_vhci_rx("Leave\n");
-
-       return;
 }
 
 static struct vhci_unlink *dequeue_pending_unlink(struct vhci_device *vdev,