Bluetooth: remove redundant variables 'adv_set' and 'cp'
authorYueHaibing <yuehaibing@huawei.com>
Mon, 6 Aug 2018 11:08:51 +0000 (19:08 +0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 6 Aug 2018 14:06:58 +0000 (17:06 +0300)
commitad3e0b2f3c9483fa79bb4148464dba52ce33ae46
tree89a81fe1856eeb5943bbf14cb1c86c0d4d166ec9
parent981467033a37d916649647fa3afe1fe99bba1817
Bluetooth: remove redundant variables 'adv_set' and 'cp'

Variables 'adv_set' and 'cp'  are being assigned but are never used hence
they are redundant and can be removed.

Cleans up clang warnings:
net/bluetooth/hci_event.c:1135:29: warning: variable 'adv_set' set but not used [-Wunused-but-set-variable]
net/bluetooth/mgmt.c:3359:39: warning: variable 'cp' set but not used [-Wunused-but-set-variable]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c