提交 b3baa242 编写于 作者: M Maxim Zhukov 提交者: Marcel Holtmann

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: NMaxim Zhukov <mussitantesmortem@gmail.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 8b077bdb
...@@ -399,7 +399,7 @@ static int ath3k_set_normal_mode(struct usb_device *udev) ...@@ -399,7 +399,7 @@ static int ath3k_set_normal_mode(struct usb_device *udev)
static int ath3k_load_patch(struct usb_device *udev) static int ath3k_load_patch(struct usb_device *udev)
{ {
unsigned char fw_state; unsigned char fw_state;
char filename[ATH3K_NAME_LEN] = {0}; char filename[ATH3K_NAME_LEN];
const struct firmware *firmware; const struct firmware *firmware;
struct ath3k_version fw_version; struct ath3k_version fw_version;
__u32 pt_rom_version, pt_build_version; __u32 pt_rom_version, pt_build_version;
...@@ -452,7 +452,7 @@ static int ath3k_load_patch(struct usb_device *udev) ...@@ -452,7 +452,7 @@ static int ath3k_load_patch(struct usb_device *udev)
static int ath3k_load_syscfg(struct usb_device *udev) static int ath3k_load_syscfg(struct usb_device *udev)
{ {
unsigned char fw_state; unsigned char fw_state;
char filename[ATH3K_NAME_LEN] = {0}; char filename[ATH3K_NAME_LEN];
const struct firmware *firmware; const struct firmware *firmware;
struct ath3k_version fw_version; struct ath3k_version fw_version;
int clk_value, ret; int clk_value, ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册