[PATCH 026/141] USB: langwell: Remove unnecessary return's from void functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Joe Perches <joe@xxxxxxxxxxx>

There are about 2500 void functions in drivers/usb
Only a few used return; at end of function.

Standardize them a bit.

Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
Signed-off-by: Jiri Kosina <jkosina@xxxxxxx>
Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
 drivers/usb/gadget/langwell_udc.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/usb/gadget/langwell_udc.c b/drivers/usb/gadget/langwell_udc.c
index 1ef17a6..d297f9e 100644
--- a/drivers/usb/gadget/langwell_udc.c
+++ b/drivers/usb/gadget/langwell_udc.c
@@ -254,7 +254,6 @@ static void ep0_reset(struct langwell_udc *dev)
 	}
 
 	dev_vdbg(&dev->pdev->dev, "<--- %s()\n", __func__);
-	return;
 }
 
 
@@ -1502,7 +1501,6 @@ static void langwell_udc_start(struct langwell_udc *dev)
 	writel(usbcmd, &dev->op_regs->usbcmd);
 
 	dev_dbg(&dev->pdev->dev, "<--- %s()\n", __func__);
-	return;
 }
 
 
@@ -1525,7 +1523,6 @@ static void langwell_udc_stop(struct langwell_udc *dev)
 	writel(usbcmd, &dev->op_regs->usbcmd);
 
 	dev_dbg(&dev->pdev->dev, "<--- %s()\n", __func__);
-	return;
 }
 
 
@@ -2417,7 +2414,6 @@ delegate:
 	}
 end:
 	dev_vdbg(&dev->pdev->dev, "<--- %s()\n", __func__);
-	return;
 }
 
 
@@ -2633,7 +2629,6 @@ static void handle_trans_complete(struct langwell_udc *dev)
 	}
 done:
 	dev_vdbg(&dev->pdev->dev, "<--- %s()\n", __func__);
-	return;
 }
 
 
-- 
1.7.2

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux