diff options
-rw-r--r-- | drivers/platform/x86/msi-laptop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c index 063113ca299e..7ba107ae1d09 100644 --- a/drivers/platform/x86/msi-laptop.c +++ b/drivers/platform/x86/msi-laptop.c | |||
@@ -291,7 +291,7 @@ static ssize_t show_wlan(struct device *dev, | |||
291 | struct device_attribute *attr, char *buf) | 291 | struct device_attribute *attr, char *buf) |
292 | { | 292 | { |
293 | 293 | ||
294 | int ret, enabled; | 294 | int ret, enabled = 0; |
295 | 295 | ||
296 | if (old_ec_model) { | 296 | if (old_ec_model) { |
297 | ret = get_wireless_state(&enabled, NULL); | 297 | ret = get_wireless_state(&enabled, NULL); |
@@ -315,7 +315,7 @@ static ssize_t show_bluetooth(struct device *dev, | |||
315 | struct device_attribute *attr, char *buf) | 315 | struct device_attribute *attr, char *buf) |
316 | { | 316 | { |
317 | 317 | ||
318 | int ret, enabled; | 318 | int ret, enabled = 0; |
319 | 319 | ||
320 | if (old_ec_model) { | 320 | if (old_ec_model) { |
321 | ret = get_wireless_state(NULL, &enabled); | 321 | ret = get_wireless_state(NULL, &enabled); |