Skip to contentSkip to conversation

Bluetooth: btmtk: Dont workout the filename twice.

PATCH New Alistair Leslie-Hughes 1 participant 1 message Jul 2, 2024 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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

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.

---
 drivers/bluetooth/btmtksdio.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/bluetooth/btmtksdio.c +0 -3
index b4e560a17aa6..85850c4b6953 100644
@@ -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;
Signature · 1 line
2.43.0