]> 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)
commit0a403a739696b3f3f77091335664c4e7b434ccf1
tree79da2c54ccbe78de5dc4f6bd0dfcfbbd56c338db
parentccfcff022b0d92c1f6007dde133e5e4fe68ee767
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