summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <maxtram95@gmail.com>2012-12-15 19:31:26 +0200
committerMatthew Garrett <matthew.garrett@nebula.com>2013-02-24 14:49:53 -0800
commit1b6517a0a99b3a950d708d31de1a015843039066 (patch)
tree79ddf72b885c1bc2728f9b0ab74f641bf7217f3c /drivers/platform
parent27eb9e7f1211ecab64027113478867adfed6a7c8 (diff)
downloadop-kernel-dev-1b6517a0a99b3a950d708d31de1a015843039066.zip
op-kernel-dev-1b6517a0a99b3a950d708d31de1a015843039066.tar.gz
msi-laptop: Work around gcc warning
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>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/msi-laptop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c
index 063113c..7ba107a 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,
struct device_attribute *attr, char *buf)
{
- int ret, enabled;
+ int ret, enabled = 0;
if (old_ec_model) {
ret = get_wireless_state(&enabled, NULL);
@@ -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);
OpenPOWER on IntegriCloud