Bluetooth: ath3k: do not init variables
authorMaxim Zhukov <mussitantesmortem@gmail.com>
Sun, 4 Feb 2018 21:09:44 +0000 (00:09 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 7 Feb 2018 08:46:09 +0000 (09:46 +0100)
Do not need to initialize variables, because further on the code they
fall into the snprintf.

Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/ath3k.c

index 0a5cfea..b16c01a 100644 (file)
@@ -399,7 +399,7 @@ static int ath3k_set_normal_mode(struct usb_device *udev)
 static int ath3k_load_patch(struct usb_device *udev)
 {
        unsigned char fw_state;
-       char filename[ATH3K_NAME_LEN] = {0};
+       char filename[ATH3K_NAME_LEN];
        const struct firmware *firmware;
        struct ath3k_version fw_version;
        __u32 pt_rom_version, pt_build_version;
@@ -452,7 +452,7 @@ static int ath3k_load_patch(struct usb_device *udev)
 static int ath3k_load_syscfg(struct usb_device *udev)
 {
        unsigned char fw_state;
-       char filename[ATH3K_NAME_LEN] = {0};
+       char filename[ATH3K_NAME_LEN];
        const struct firmware *firmware;
        struct ath3k_version fw_version;
        int clk_value, ret;