From patchwork Fri Jan 13 10:51:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 135797 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9BBDFB6F68 for ; Fri, 13 Jan 2012 22:13:34 +1100 (EST) Received: from localhost ([::1]:53478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlemC-00029m-1x for incoming@patchwork.ozlabs.org; Fri, 13 Jan 2012 05:54:28 -0500 Received: from eggs.gnu.org ([140.186.70.92]:42558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlelE-0000N9-BY for qemu-devel@nongnu.org; Fri, 13 Jan 2012 05:53:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rlekz-0001Mf-HC for qemu-devel@nongnu.org; Fri, 13 Jan 2012 05:53:25 -0500 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:42372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rlekz-0001MC-9N for qemu-devel@nongnu.org; Fri, 13 Jan 2012 05:53:13 -0500 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 13 Jan 2012 10:53:12 -0000 Received: from d06nrmr1507.portsmouth.uk.ibm.com ([9.149.38.233]) by e06smtp17.uk.ibm.com ([192.168.101.147]) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 13 Jan 2012 10:52:57 -0000 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q0DAqvil2289762 for ; Fri, 13 Jan 2012 10:52:57 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q0DAqu7g012482 for ; Fri, 13 Jan 2012 03:52:57 -0700 Received: from localhost (stefanha-thinkpad.manchester-maybrook.uk.ibm.com [9.174.219.31]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q0DAquld012473; Fri, 13 Jan 2012 03:52:56 -0700 From: Stefan Hajnoczi To: Anthony Liguori Date: Fri, 13 Jan 2012 10:51:40 +0000 Message-Id: <1326451900-18325-13-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1326451900-18325-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1326451900-18325-1-git-send-email-stefanha@linux.vnet.ibm.com> x-cbid: 12011310-0542-0000-0000-000000A8EB49 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.75.94.113 Cc: qemu-devel@nongnu.org, Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 12/12] bt-host: add missing break statement X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The switch statement in bt_host_read() is missing a break in one case. Andrzej Zaborowski confirmed that this is not an intentional fall-through. Reviewed-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- bt-host.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/bt-host.c b/bt-host.c index df5b7cd..0d3ad28 100644 --- a/bt-host.c +++ b/bt-host.c @@ -130,6 +130,7 @@ static void bt_host_read(void *opaque) pktlen = MIN(pkt[2] + 3, s->len); s->len -= pktlen; pkt += pktlen; + break; default: bad_pkt: