Commit 761f1e9f authored by Colin Ian King's avatar Colin Ian King Committed by Marcel Holtmann

Bluetooth: remove redundant zero check on count

Variable count is never zero inside the loop so the check if count is
zero is redundant and can be removed. Fix this.

Detected by CoverityScan, CID#1466880 ("Logically dead code")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent e20a2e9c
...@@ -67,9 +67,6 @@ static inline struct sk_buff *h4_recv_buf(struct hci_dev *hdev, ...@@ -67,9 +67,6 @@ static inline struct sk_buff *h4_recv_buf(struct hci_dev *hdev,
while (count) { while (count) {
int i, len; int i, len;
if (!count)
break;
if (!skb) { if (!skb) {
for (i = 0; i < pkts_count; i++) { for (i = 0; i < pkts_count; i++) {
if (buffer[0] != (&pkts[i])->type) if (buffer[0] != (&pkts[i])->type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment