diff options
author | Max Vozeler <max@hinterhof.net> | 2014-07-28 13:28:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-30 16:39:34 -0700 |
commit | a948318f70b4035983db7d178618b407bcd1fecb (patch) | |
tree | 7684702a79290e2583054738318115de738d51fa /drivers/staging/usbip | |
parent | e8cdd70affc2594e06a2a79e1aaaf62df88987df (diff) |
staging: usbip: remove redundant return statements
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>
Diffstat (limited to 'drivers/staging/usbip')
-rw-r--r-- | drivers/staging/usbip/stub_rx.c | 1 | ||||
-rw-r--r-- | drivers/staging/usbip/vhci_hcd.c | 1 | ||||
-rw-r--r-- | drivers/staging/usbip/vhci_rx.c | 2 |
3 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/usbip/stub_rx.c b/drivers/staging/usbip/stub_rx.c index e0b6d6b42728..00e475c51a12 100644 --- a/drivers/staging/usbip/stub_rx.c +++ b/drivers/staging/usbip/stub_rx.c @@ -529,7 +529,6 @@ static void stub_recv_cmd_submit(struct stub_device *sdev, } usbip_dbg_stub_rx("Leave\n"); - return; } /* recv a pdu */ diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c index e21c1b4d09ed..c02374b6049c 100644 --- a/drivers/staging/usbip/vhci_hcd.c +++ b/drivers/staging/usbip/vhci_hcd.c @@ -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 = { diff --git a/drivers/staging/usbip/vhci_rx.c b/drivers/staging/usbip/vhci_rx.c index d07fcb5ee93a..00e4a54308e4 100644 --- a/drivers/staging/usbip/vhci_rx.c +++ b/drivers/staging/usbip/vhci_rx.c @@ -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, |