diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-08-06 13:08:51 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2018-08-06 16:06:58 +0200 |
commit | ad3e0b2f3c9483fa79bb4148464dba52ce33ae46 (patch) | |
tree | 89a81fe1856eeb5943bbf14cb1c86c0d4d166ec9 /net/bluetooth/hci_event.c | |
parent | tc-testing: remove duplicate spaces in skbedit match patterns (diff) | |
download | linux-ad3e0b2f3c9483fa79bb4148464dba52ce33ae46.tar.xz linux-ad3e0b2f3c9483fa79bb4148464dba52ce33ae46.zip |
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>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 754714c8d752..8078587572fe 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -1132,7 +1132,6 @@ static void hci_cc_le_set_ext_adv_enable(struct hci_dev *hdev, struct sk_buff *skb) { struct hci_cp_le_set_ext_adv_enable *cp; - struct hci_cp_ext_adv_set *adv_set; __u8 status = *((__u8 *) skb->data); BT_DBG("%s status 0x%2.2x", hdev->name, status); @@ -1144,8 +1143,6 @@ static void hci_cc_le_set_ext_adv_enable(struct hci_dev *hdev, if (!cp) return; - adv_set = (void *) cp->data; - hci_dev_lock(hdev); if (cp->enable) { |