From: Maxim Zhukov Date: Sun, 4 Feb 2018 21:09:44 +0000 (+0300) Subject: Bluetooth: ath3k: do not init variables X-Git-Tag: v4.17-rc1~148^2~421^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3baa2428dece073f7158b2eb616dc69a759ea8e;p=thirdparty%2Fkernel%2Flinux.git Bluetooth: ath3k: do not init variables Do not need to initialize variables, because further on the code they fall into the snprintf. Signed-off-by: Maxim Zhukov Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c index 0a5cfea44529c..b16c01a0b6d4e 100644 --- a/drivers/bluetooth/ath3k.c +++ b/drivers/bluetooth/ath3k.c @@ -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;