summary refs log tree commit diff
path: root/drivers/bluetooth/hci_ag6xx.c
diff options
context:
space:
mode:
authorNigel Christian <nigel.l.christian@gmail.com>2021-06-16 15:45:02 -0400
committerMarcel Holtmann <marcel@holtmann.org>2021-06-26 07:52:41 +0200
commit1f0536139cb8e8175ca034e12706b86f77f9061e (patch)
treed1d92b6f6d1a82f2a210dbac550bb91effe78736 /drivers/bluetooth/hci_ag6xx.c
parent23837a6d7a1a61818ed94a6b8af552d6cf7d32d5 (diff)
downloadlinux-1f0536139cb8e8175ca034e12706b86f77f9061e.tar.gz
Bluetooth: hci_uart: Remove redundant assignment to fw_ptr
The variable fw_ptr is assigned a value that is not read and the same value
is assigned in the patch goto. The assignment is redundant and can be
removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Nigel Christian <nigel.l.christian@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_ag6xx.c')
-rw-r--r--drivers/bluetooth/hci_ag6xx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_ag6xx.c b/drivers/bluetooth/hci_ag6xx.c
index 1f55df93e4ce..2d40302409ff 100644
--- a/drivers/bluetooth/hci_ag6xx.c
+++ b/drivers/bluetooth/hci_ag6xx.c
@@ -199,7 +199,6 @@ static int ag6xx_setup(struct hci_uart *hu)
 			   fwname, err);
 		goto patch;
 	}
-	fw_ptr = fw->data;
 
 	bt_dev_info(hdev, "Applying bddata (%s)", fwname);