]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove redundant check on status
authorColin Ian King <colin.king@canonical.com>
Wed, 10 Oct 2018 14:37:31 +0000 (15:37 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 14 Oct 2018 08:31:25 +0000 (10:31 +0200)
commit5ddc1554ccbe5c78682a95df40c68c109850bc97
treedcf9fcf8212ff8e4bb11204ce18954739dc6871d
parentb9339700e292b274aad244bb8a1c3b949324debb
Bluetooth: Remove redundant check on status

The check on status is redundant as a status has to be zero at
the point it is being checked because of a previous check and return
path via label 'unlock'.  Remove the redundant check and the deadcode
that can never be reached.

Detected by CoverityScan, CID#1471710 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c