diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-04-22 03:41:24 +0200 |
---|---|---|
committer | Andrzej Zaborowski <balrog@zabor.org> | 2010-04-22 03:41:24 +0200 |
commit | 7b1df88f284f462ecb236931ad863a815f243195 (patch) | |
tree | f1fbb4226abb880a30f54cd6b776be7ae6cef9b3 /hw/bt-l2cap.c | |
parent | 8bb414d2aac3b41695b528f21b7e285ebdb225e4 (diff) |
bt-l2cap: fix if statement with empty body, spotted by clang
Fix clang error:
CC bt-l2cap.o
/src/qemu/hw/bt-l2cap.c:1000:41: error: if statement has empty body
[-Wempty-body]
/* TODO: Signal an error? */;
This means that l2cap_sframe_in() may now get called.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Andrew Zaborowski <balrogg@gmail.com>
Diffstat (limited to 'hw/bt-l2cap.c')
-rw-r--r-- | hw/bt-l2cap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/bt-l2cap.c b/hw/bt-l2cap.c index 70d731e61b..7e2f668e5a 100644 --- a/hw/bt-l2cap.c +++ b/hw/bt-l2cap.c @@ -996,10 +996,10 @@ static void l2cap_iframe_in(struct l2cap_chan_s *ch, uint16_t cid, l2cap_rexmit_enable(ch, !(hdr->data[0] >> 7)); if (hdr->data[0] & 1) { - if (len != 4) - /* TODO: Signal an error? */; + if (len != 4) { + /* TODO: Signal an error? */ return; - + } return l2cap_sframe_in(ch, le16_to_cpup((void *) hdr->data)); } |