usb-linux: Add missing break statement
authorStefan Weil <weil@mail.berlios.de>
Sat, 7 May 2011 20:10:53 +0000 (22:10 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 9 May 2011 14:18:32 +0000 (16:18 +0200)
cppcheck report:
usb-linux.c:661: warning: Redundant assignment of "len" in switch

Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-linux.c

index 36a01ea..0ef1d26 100644 (file)
@@ -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;