Applied.
thanks,
-Len
On Tuesday 06 March 2007 05:29, [EMAIL PROTECTED] wrote:
> From: Andrew Morton <[EMAIL PROTECTED]>
>
> drivers/misc/sony-laptop.c: In function 'sony_acpi_add':
> drivers/misc/sony-laptop.c:456: warning: 'result' may be used uninitialized
> in this function
>
> The compiler seems to actually be telling the truth this time.
>
> Cc: Mattia Dongili <[EMAIL PROTECTED]>
> Cc: Len Brown <[EMAIL PROTECTED]>
> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
> ---
>
> drivers/misc/sony-laptop.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN drivers/misc/sony-laptop.c~sony-laptop-fix-uninitialised-variable
> drivers/misc/sony-laptop.c
> --- a/drivers/misc/sony-laptop.c~sony-laptop-fix-uninitialised-variable
> +++ a/drivers/misc/sony-laptop.c
> @@ -453,7 +453,7 @@ static int sony_acpi_resume(struct acpi_
> static int sony_acpi_add(struct acpi_device *device)
> {
> acpi_status status;
> - int result;
> + int result = 0;
> acpi_handle handle;
>
> sony_acpi_acpi_device = device;
> _
>
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html