mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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>
This commit is contained in:
parent
2783658477
commit
0986f25fbb
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue