diff mbox series

[1/1] Bluetooth: btmtk: Dont workout the filename twice.

Message ID SL2P216MB1467968E6EA1AD4BD8C8EADA93DC2@SL2P216MB1467.KORP216.PROD.OUTLOOK.COM (mailing list archive)
State New
Headers show
Series [1/1] Bluetooth: btmtk: Dont workout the filename twice. | expand

Commit Message

Alistair Leslie-Hughes July 2, 2024, 3:47 a.m. UTC
Introduced in cd2f22b64f0038302760cab1543b9bb1696bf968

The new function btmtk_fw_get_filename is used to get the filename but the old
code to workout the filename was left inplace.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
---
 drivers/bluetooth/btmtksdio.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio.c
index b4e560a17aa6..85850c4b6953 100644
--- a/drivers/bluetooth/btmtksdio.c
+++ b/drivers/bluetooth/btmtksdio.c
@@ -1120,9 +1120,6 @@  static int btmtksdio_setup(struct hci_dev *hdev)
 		btmtk_fw_get_filename(fwname, sizeof(fwname), dev_id,
 				      fw_version, 0);
 
-		snprintf(fwname, sizeof(fwname),
-			 "mediatek/BT_RAM_CODE_MT%04x_1_%x_hdr.bin",
-			 dev_id & 0xffff, (fw_version & 0xff) + 1);
 		err = mt79xx_setup(hdev, fwname);
 		if (err < 0)
 			return err;