lkml.org 
[lkml]   [2011]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/5] fusb300_udc: Add missing breaks in switch/case
Date
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/usb/gadget/fusb300_udc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/gadget/fusb300_udc.c b/drivers/usb/gadget/fusb300_udc.c
index 06353e7..453bc0f 100644
--- a/drivers/usb/gadget/fusb300_udc.c
+++ b/drivers/usb/gadget/fusb300_udc.c
@@ -688,10 +688,13 @@ static void fusb300_cmp_dbg_fifo(struct fusb300_ep *ep,
switch (length % 4) {
case 1:
golden_value = *tmp;
+ break;
case 2:
golden_value = *tmp | *(tmp + 1) << 8;
+ break;
case 3:
golden_value = *tmp | *(tmp + 1) << 8 | *(tmp + 2) << 16;
+ break;
default:
break;

--
1.7.6.131.g99019


\
 
 \ /
  Last update: 2011-07-10 11:31    [W:0.102 / U:8.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site