]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitd17010bf6301b62df09f7878f3474f42ee0754eb
treedcf9fcf8212ff8e4bb11204ce18954739dc6871d
parentdd1a8f8a88eecbc903f9ffff12332bec6d3f3be3
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