aboutsummaryrefslogtreecommitdiff
path: root/usb-linux.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2011-05-07 22:10:53 +0200
committerGerd Hoffmann <kraxel@redhat.com>2011-05-09 16:18:32 +0200
commit0225e254ae81c5638463cda8f5730f31619113b6 (patch)
treedb66c56858d649ff7c4424dbc577c6eb01f4b4d7 /usb-linux.c
parentb3e5759e090e7f1dcb8d226bd77a3db203892ebd (diff)
usb-linux: Add missing break statement
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>
Diffstat (limited to 'usb-linux.c')
-rw-r--r--usb-linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usb-linux.c b/usb-linux.c
index 36a01ea0de..0ef1d2619b 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;