Bluetooth: remove redundant zero check on count
authorColin Ian King <colin.king@canonical.com>
Mon, 4 Feb 2019 19:03:10 +0000 (19:03 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 18 Feb 2019 10:46:45 +0000 (11:46 +0100)
commit761f1e9f99b2cec66397db59a8f77ff6cbbfa536
tree5654c6c9207802b628005e9fd265f82a636285e7
parente20a2e9c42c9e4002d9e338d74e7819e88d77162
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>
drivers/bluetooth/h4_recv.h