sony-laptop: fix a couple signedness bugs
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 9 Jun 2012 04:18:14 +0000 (13:18 +0900)
committerMatthew Garrett <mjg@redhat.com>
Tue, 26 Jun 2012 18:43:33 +0000 (14:43 -0400)
commit56f4a9f76d8ce7c7cef92905c909aad0c7e5c9db
treec230f77cb978fc711fbbde612189ebd5991f6e82
parentc7a2918373983b32db3ca35823d930641747e26f
sony-laptop: fix a couple signedness bugs

This needs to be signed to handle negative error codes.
Remove a redundant check, read_limits is always called with a valid
handle.

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