diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-01-08 01:54:31 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-01-08 21:47:28 +0100 |
commit | 56b084ed6eaa0a6353395deffb601dbd6570a1a5 (patch) | |
tree | 11c5c6a0a53732a1a33b4d52c767a9dfcc04fae2 /drivers | |
parent | 87c2a2a7d7631d0caa956b73f9f20010b5f55681 (diff) |
Bluetooth: hci_qca: Remove set but not used variable 'opcode'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/bluetooth/hci_qca.c: In function 'qca_controller_memdump':
drivers/bluetooth/hci_qca.c:980:6: warning:
variable 'opcode' set but not used [-Wunused-but-set-variable]
It is never used since commit d841502c79e3 ("Bluetooth: hci_qca: Collect
controller memory dump during SSR"), so remove it.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/bluetooth/hci_qca.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index a17260641283..82e4cd4b6663 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -977,7 +977,7 @@ static void qca_controller_memdump(struct work_struct *work) struct qca_dump_size *dump; char *memdump_buf; char nullBuff[QCA_DUMP_PACKET_SIZE] = { 0 }; - u16 opcode, seq_no; + u16 seq_no; u32 dump_size; while ((skb = skb_dequeue(&qca->rx_memdump_q))) { @@ -993,7 +993,6 @@ static void qca_controller_memdump(struct work_struct *work) qca->memdump_state = QCA_MEMDUMP_COLLECTING; cmd_hdr = (void *) skb->data; - opcode = __le16_to_cpu(cmd_hdr->opcode); seq_no = __le16_to_cpu(cmd_hdr->seq_no); skb_pull(skb, sizeof(struct qca_memdump_event_hdr)); |