Subject: [RHEL6 qemu-kvm PATCH 070/115] usb-linux: Add missing break statement

From: Gerd Hoffmann <[email-masked]>
Date: Thu, 23 Jun 2011 12:41:45 -0300

RH-Author: Gerd Hoffmann <[email-masked]>
Message-id: <[email-masked]>
Patchwork-id: 28388
O-Subject: [RHEL-6.2 kvm PATCH 069/115] usb-linux: Add missing break statement
Bugzilla: 561414 632299 645351 711354
RH-Acked-by: Hans de Goede <[email-masked]>
RH-Acked-by: Jes Sorensen <[email-masked]>
RH-Acked-by: Paolo Bonzini <[email-masked]>
RH-Acked-by: Kevin Wolf <[email-masked]>

From: Stefan Weil <[email-masked]>

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

Cc: Hans de Goede <[email-masked]>
Cc: Gerd Hoffmann <[email-masked]>
Signed-off-by: Stefan Weil <[email-masked]>
Signed-off-by: Gerd Hoffmann <[email-masked]>
(cherry picked from commit 0225e254ae81c5638463cda8f5730f31619113b6)
---
 usb-linux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Signed-off-by: Eduardo Habkost <[email-masked]>
---
 usb-linux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/usb-linux.c b/usb-linux.c
index 791fdbc..559a60f 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -655,6 +655,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.3.2