diff options
author | Joe Perches <joe@perches.com> | 2010-08-04 13:40:08 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-08-10 08:25:42 -0400 |
commit | 7f26b3a7533bbc1ddd88b297c935ee4da8f74cea (patch) | |
tree | 28ba09da29cf391405a932ef243ea49d96a21204 /drivers/usb/host/oxu210hp-hcd.c | |
parent | 429d646d9aeafdb57717dab75c807215f5cce9c2 (diff) |
drivers/usb: Remove unnecessary return's from void functions
Greg prefers this to go through the trivial tree.
http://lkml.org/lkml/2010/6/24/1
There are about 2500 void functions in drivers/usb
Only a few used return; at end of function.
Standardize them a bit.
Moved a statement down a line in drivers/usb/host/u132-hcd.c
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/usb/host/oxu210hp-hcd.c')
-rw-r--r-- | drivers/usb/host/oxu210hp-hcd.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c index f608dfd09a8a..de9e1c35da45 100644 --- a/drivers/usb/host/oxu210hp-hcd.c +++ b/drivers/usb/host/oxu210hp-hcd.c | |||
@@ -544,8 +544,6 @@ static void oxu_buf_free(struct oxu_hcd *oxu, struct ehci_qtd *qtd) | |||
544 | qtd->buffer = NULL; | 544 | qtd->buffer = NULL; |
545 | 545 | ||
546 | spin_unlock(&oxu->mem_lock); | 546 | spin_unlock(&oxu->mem_lock); |
547 | |||
548 | return; | ||
549 | } | 547 | } |
550 | 548 | ||
551 | static inline void ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma) | 549 | static inline void ehci_qtd_init(struct ehci_qtd *qtd, dma_addr_t dma) |
@@ -571,8 +569,6 @@ static inline void oxu_qtd_free(struct oxu_hcd *oxu, struct ehci_qtd *qtd) | |||
571 | oxu->qtd_used[index] = 0; | 569 | oxu->qtd_used[index] = 0; |
572 | 570 | ||
573 | spin_unlock(&oxu->mem_lock); | 571 | spin_unlock(&oxu->mem_lock); |
574 | |||
575 | return; | ||
576 | } | 572 | } |
577 | 573 | ||
578 | static struct ehci_qtd *ehci_qtd_alloc(struct oxu_hcd *oxu) | 574 | static struct ehci_qtd *ehci_qtd_alloc(struct oxu_hcd *oxu) |
@@ -615,8 +611,6 @@ static void oxu_qh_free(struct oxu_hcd *oxu, struct ehci_qh *qh) | |||
615 | oxu->qh_used[index] = 0; | 611 | oxu->qh_used[index] = 0; |
616 | 612 | ||
617 | spin_unlock(&oxu->mem_lock); | 613 | spin_unlock(&oxu->mem_lock); |
618 | |||
619 | return; | ||
620 | } | 614 | } |
621 | 615 | ||
622 | static void qh_destroy(struct kref *kref) | 616 | static void qh_destroy(struct kref *kref) |
@@ -693,8 +687,6 @@ static void oxu_murb_free(struct oxu_hcd *oxu, struct oxu_murb *murb) | |||
693 | oxu->murb_used[index] = 0; | 687 | oxu->murb_used[index] = 0; |
694 | 688 | ||
695 | spin_unlock(&oxu->mem_lock); | 689 | spin_unlock(&oxu->mem_lock); |
696 | |||
697 | return; | ||
698 | } | 690 | } |
699 | 691 | ||
700 | static struct oxu_murb *oxu_murb_alloc(struct oxu_hcd *oxu) | 692 | static struct oxu_murb *oxu_murb_alloc(struct oxu_hcd *oxu) |
@@ -3073,7 +3065,6 @@ nogood: | |||
3073 | ep->hcpriv = NULL; | 3065 | ep->hcpriv = NULL; |
3074 | done: | 3066 | done: |
3075 | spin_unlock_irqrestore(&oxu->lock, flags); | 3067 | spin_unlock_irqrestore(&oxu->lock, flags); |
3076 | return; | ||
3077 | } | 3068 | } |
3078 | 3069 | ||
3079 | static int oxu_get_frame(struct usb_hcd *hcd) | 3070 | static int oxu_get_frame(struct usb_hcd *hcd) |