Skip to content

Commit

Permalink
asus-wmi: ->is_visible() can't return negative
Browse files Browse the repository at this point in the history
It's mode_t; return 0 (no access) on error.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jul 24, 2011
1 parent 963945b commit e772aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/asus-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ static mode_t asus_hwmon_sysfs_is_visible(struct kobject *kobj,
int err = asus_wmi_get_devstate(asus, dev_id, &value);

if (err < 0)
return err;
return 0; /* can't return negative here */
}

if (dev_id == ASUS_WMI_DEVID_FAN_CTRL) {
Expand Down

0 comments on commit e772aed

Please sign in to comment.