]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74cf664f92412402a7a3d1feda39a31ca12a0b37
tree79da2c54ccbe78de5dc4f6bd0dfcfbbd56c338db
parent826696c434da2115cdc719e2a9f04176d93dca6b
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: 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