usb-linux: Add missing break statement
PATCH 1/1 usb-linux: Add missing break statement
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 <[email protected]>
Cc Gerd Hoffmann <[email protected]>
Signed-off-by Stefan Weil <[email protected]>
--- usb-linux.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
usb-linux.c +1 -0
@@ -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 ;
Signature · 1 line
1.7.2.5
Thanks, good catch.
Acked-by Hans de Goede <[email protected]>
Quoted 25 lines · Stefan Weil
cppcheck report:
usb-linux.c:661: warning: Redundant assignment of "len" in switchPlease check whether adding a break statement
is the correct solution for this warning.Cc Hans de Goede<[email protected]>Cc Gerd Hoffmann<[email protected]>Signed-off-by Stefan Weil<[email protected]>--- usb-linux.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)usb-linux.c +1
-0@@ -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 ;
Quoted 2 lines · Stefan Weil
cppcheck report:
usb-linux.c:661: warning: Redundant assignment of "len" in switch
Picked into usb patch queue.
thanks,
Gerd