From: Nigel Christian Date: Wed, 16 Jun 2021 19:45:02 +0000 (-0400) Subject: Bluetooth: hci_uart: Remove redundant assignment to fw_ptr X-Git-Tag: accepted/tizen/unified/20230118.172025~6942^2~13^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f0536139cb8e8175ca034e12706b86f77f9061e;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/hci_ag6xx.c b/drivers/bluetooth/hci_ag6xx.c index 1f55df9..2d40302 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);