sony-laptop: adjust error handling in finding SNC handles
authorMattia Dongili <malattia@linux.it>
Sat, 19 May 2012 13:35:52 +0000 (22:35 +0900)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:29:35 +0000 (14:29 -0400)
commitbab7084c745bf4d75b760728387f375fd34dc683
tree689c46ff60c0799a58d85068d86cab5c39ed8a39
parent49f000adcad2d47f22ae97eb78fb2ef8081cd08f
sony-laptop: adjust error handling in finding SNC handles

All handles must be greater than 0, also return more meaningful error
codes on invalid conditions.

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/sony-laptop.c