mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 12:41:55 +00:00
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>
This commit is contained in:
parent
27eb9e7f12
commit
1b6517a0a9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user