Skip to content

Commit

Permalink
msi-laptop: Work around gcc warning
Browse files Browse the repository at this point in the history
Assign initial value to variable in order to prevent gcc warning about
uninitialized variable.

Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
  • Loading branch information
Maxim Mikityanskiy authored and Matthew Garrett committed Feb 24, 2013
1 parent 27eb9e7 commit 1b6517a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/platform/x86/msi-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static ssize_t show_wlan(struct device *dev,
struct device_attribute *attr, char *buf)
{

int ret, enabled;
int ret, enabled = 0;

if (old_ec_model) {
ret = get_wireless_state(&enabled, NULL);
Expand All @@ -315,7 +315,7 @@ static ssize_t show_bluetooth(struct device *dev,
struct device_attribute *attr, char *buf)
{

int ret, enabled;
int ret, enabled = 0;

if (old_ec_model) {
ret = get_wireless_state(NULL, &enabled);
Expand Down

0 comments on commit 1b6517a

Please sign in to comment.