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;