Skip to content

Commit

Permalink
Bluetooth: hci_uart: Remove redundant assignment to fw_ptr
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nigel Christian authored and Marcel Holtmann committed Jun 26, 2021
1 parent 23837a6 commit 1f05361
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/bluetooth/hci_ag6xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1f05361

Please sign in to comment.