Re: [PATCH 2/6] msi-laptop: Work around gcc warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



於 日,2012-11-25 於 00:28 +0200,Maxim Mikityanskiy 提到:
> Signed-off-by: Maxim Mikityanskiy <maxtram95@xxxxxxxxx>

Signed-off-by: Lee, Chun-Yi <jlee@xxxxxxxx>

Thanks for your patch!
Joey Lee

> ---
>  drivers/platform/x86/msi-laptop.c | 4 ++--
>  1 file 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);


--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux