]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Bluetooth: btmrvl: fix compilation warning
authorXinming Hu <huxm@marvell.com>
Tue, 21 Apr 2015 13:59:56 +0000 (06:59 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 13 May 2015 21:08:04 +0000 (23:08 +0200)
This patch fixes a compile warnning "dump_num maybe used uninitialized in
this function".

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmrvl_sdio.c

index 01d6da577eeb0713127f57c264e6345b5055781d..b9a811900f6ab534087e17f3726c840a8afdb34e 100644 (file)
@@ -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 */