From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIzMY-0007W9-91 for qemu-devel@nongnu.org; Sun, 08 May 2011 04:29:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIzMX-00080N-G5 for qemu-devel@nongnu.org; Sun, 08 May 2011 04:29:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIzMX-00080G-9I for qemu-devel@nongnu.org; Sun, 08 May 2011 04:29:13 -0400 Message-ID: <4DC654DB.4050504@redhat.com> Date: Sun, 08 May 2011 10:31:23 +0200 From: Hans de Goede MIME-Version: 1.0 References: <1304799053-19137-1-git-send-email-weil@mail.berlios.de> In-Reply-To: <1304799053-19137-1-git-send-email-weil@mail.berlios.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] usb-linux: Add missing break statement List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: QEMU Developers , Gerd Hoffmann Thanks, good catch. Acked-by: Hans de Goede On 05/07/2011 10:10 PM, Stefan Weil wrote: > 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 > Cc: Gerd Hoffmann > Signed-off-by: Stefan Weil > --- > 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;