提交 03a174b3 编写于 作者: W Wei Yongjun 提交者: Matthew Garrett

sony-laptop: return a negative error code in sonypi_compat_init()

Return -1 in the error handling case instead of 0, as done elsewhere in
this function.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NMattia Dongili <malattia@linux.it>
Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
上级 50e37cce
...@@ -4320,7 +4320,8 @@ static int sony_pic_add(struct acpi_device *device) ...@@ -4320,7 +4320,8 @@ static int sony_pic_add(struct acpi_device *device)
goto err_free_resources; goto err_free_resources;
} }
if (sonypi_compat_init()) result = sonypi_compat_init();
if (result)
goto err_remove_input; goto err_remove_input;
/* request io port */ /* request io port */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册