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

Alistair Leslie-Hughes leslie_alistair at hotmail.com
Mon Jul 1 20:47:07 PDT 2024


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 at hotmail.com>
---
 drivers/bluetooth/btmtksdio.c | 3 ---
 1 file changed, 3 deletions(-)

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;
-- 
2.43.0




More information about the Linux-mediatek mailing list