]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sony-laptop: return a negative error code in sonypi_compat_init()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 10 Aug 2013 04:11:18 +0000 (13:11 +0900)
committerMatthew Garrett <matthew.garrett@nebula.com>
Sun, 18 Aug 2013 17:23:09 +0000 (13:23 -0400)
Return -1 in the error handling case instead of 0, as done elsewhere in
this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/sony-laptop.c

index 2ac045f27f10112aa467b867a9b97a9a1790c189..b1627335ff00f91a2d14ede8cdc9745c7384224d 100644 (file)
@@ -4320,7 +4320,8 @@ static int sony_pic_add(struct acpi_device *device)
                goto err_free_resources;
        }
 
-       if (sonypi_compat_init())
+       result = sonypi_compat_init();
+       if (result)
                goto err_remove_input;
 
        /* request io port */