Skip to contentSkip to conversation

Bluetooth: btmrvl: fix compilation warning

PATCH In review Amitkumar Karwar 2 participants 2 messages Apr 21, 2015 – May 13, 2015 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: btmrvl: fix compilation warning

From: Xinming Hu <[email protected]>

This patch fixes a compile warnning "dump_num maybe used uninitialized in this function".

---
 drivers/bluetooth/btmrvl_sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/btmrvl_sdio.c +1 -1
index 01d6da5..b9a8119 100644
@@ -1217,7 +1217,7 @@ static void btmrvl_sdio_dump_firmware(struct btmrvl_private *priv)
 	unsigned int reg, reg_start, reg_end;
 	enum rdwr_status stat;
 	u8 *dbg_ptr, *end_ptr, *fw_dump_data, *fw_dump_ptr;
-	u8 dump_num, idx, i, read_reg, doneflag = 0;
+	u8 dump_num = 0, idx, i, read_reg, doneflag = 0;
 	u32 memory_size, fw_dump_len = 0;
 
 	/* dump sdio register first */
Signature · 1 line
1.8.1.4