qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [Qemu-devel] [PATCH] bt-host: add missing break state


From: Stefan Weil
Subject: Re: [Qemu-trivial] [Qemu-devel] [PATCH] bt-host: add missing break statement
Date: Thu, 12 Jan 2012 18:44:27 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16

Am 12.01.2012 15:17, schrieb Stefan Hajnoczi:
The switch statement in bt_host_read() is missing a break in one case.
Andrzej Zaborowski <address@hidden> confirmed that this is
not an intentional fall-through.

Signed-off-by: Stefan Hajnoczi <address@hidden>
---
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:

Reviewed-by: Stefan Weil <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]