qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] usb-linux: Add missing break statement


From: Stefan Weil
Subject: [Qemu-devel] [PATCH] usb-linux: Add missing break statement
Date: Sat, 7 May 2011 22:10:53 +0200

cppcheck report:
usb-linux.c:661: warning: Redundant assignment of "len" in switch

Please check whether adding a break statement
is the correct solution for this warning.

Cc: Hans de Goede <address@hidden>
Cc: Gerd Hoffmann <address@hidden>
Signed-off-by: Stefan Weil <address@hidden>
---
 usb-linux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/usb-linux.c b/usb-linux.c
index 36a01ea..0ef1d26 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -659,6 +659,7 @@ static int usb_host_handle_iso_data(USBHostDevice *s, 
USBPacket *p, int in)
                         switch(errno) {
                         case ETIMEDOUT:
                             len = USB_RET_NAK;
+                            break;
                         case EPIPE:
                         default:
                             len = USB_RET_STALL;
-- 
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]