Commit 1b6517a0 authored by Maxim Mikityanskiy's avatar Maxim Mikityanskiy Committed by Matthew Garrett

msi-laptop: Work around gcc warning

Assign initial value to variable in order to prevent gcc warning about
uninitialized variable.
Signed-off-by: default avatarMaxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: default avatarLee, Chun-Yi <jlee@suse.com>
Signed-off-by: default avatarMatthew Garrett <matthew.garrett@nebula.com>
parent 27eb9e7f
...@@ -291,7 +291,7 @@ static ssize_t show_wlan(struct device *dev, ...@@ -291,7 +291,7 @@ static ssize_t show_wlan(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr, char *buf)
{ {
int ret, enabled; int ret, enabled = 0;
if (old_ec_model) { if (old_ec_model) {
ret = get_wireless_state(&enabled, NULL); ret = get_wireless_state(&enabled, NULL);
...@@ -315,7 +315,7 @@ static ssize_t show_bluetooth(struct device *dev, ...@@ -315,7 +315,7 @@ static ssize_t show_bluetooth(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr, char *buf)
{ {
int ret, enabled; int ret, enabled = 0;
if (old_ec_model) { if (old_ec_model) {
ret = get_wireless_state(NULL, &enabled); ret = get_wireless_state(NULL, &enabled);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment