diff options
author | Dan Carpenter <error27@gmail.com> | 2011-03-15 08:06:23 +0100 |
---|---|---|
committer | Matthew Garrett <mjg@redhat.com> | 2011-03-28 12:46:06 +0200 |
commit | 0986f25fbba8827762b35222bb45d2fbb2d72fa4 (patch) | |
tree | 84b1dae95e472a785cba1007a660f090c45125b1 /drivers/platform/x86/asus-wmi.c | |
parent | platform-driver-x86: samsung-laptop: make dmi_check_cb to return 1 instead of 0 (diff) | |
download | linux-0986f25fbba8827762b35222bb45d2fbb2d72fa4.tar.xz linux-0986f25fbba8827762b35222bb45d2fbb2d72fa4.zip |
asus-wmi: signedness bug in read_brightness()
"err" needs to be signed for the error handling to work.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/platform/x86/asus-wmi.c')
-rw-r--r-- | drivers/platform/x86/asus-wmi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 5b779a9443d6..a038595200ee 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c @@ -946,7 +946,8 @@ static int read_brightness_max(struct asus_wmi *asus) static int read_brightness(struct backlight_device *bd) { struct asus_wmi *asus = bl_get_data(bd); - u32 retval, err; + u32 retval; + int err; err = asus_wmi_get_devstate(asus, ASUS_WMI_DEVID_BRIGHTNESS, &retval); |