summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-02-04 19:03:10 +0000
committerMarcel Holtmann <marcel@holtmann.org>2019-02-18 11:46:45 +0100
commit761f1e9f99b2cec66397db59a8f77ff6cbbfa536 (patch)
tree5654c6c9207802b628005e9fd265f82a636285e7 /drivers/bluetooth
parente20a2e9c42c9e4002d9e338d74e7819e88d77162 (diff)
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: Colin Ian King <colin.king@canonical.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/h4_recv.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/bluetooth/h4_recv.h b/drivers/bluetooth/h4_recv.h
index 307d82166f48..87ccaceadba7 100644
--- a/drivers/bluetooth/h4_recv.h
+++ b/drivers/bluetooth/h4_recv.h
@@ -67,9 +67,6 @@ static inline struct sk_buff *h4_recv_buf(struct hci_dev *hdev,
while (count) {
int i, len;
- if (!count)
- break;
-
if (!skb) {
for (i = 0; i < pkts_count; i++) {
if (buffer[0] != (&pkts[i])->type)