summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/asus-wmi.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-24 04:59:40 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-24 18:12:19 +0400
commite772aed369779c98f44e83ccd7fb1b713953cd09 (patch)
treeb95e12adefedbaa2df6cb2d41e820f9a6161b033 /drivers/platform/x86/asus-wmi.c
parent963945bf93e46b9bf71a07bf9c78183e0f57733a (diff)
downloadlinux-e772aed369779c98f44e83ccd7fb1b713953cd09.tar.xz
asus-wmi: ->is_visible() can't return negative
It's mode_t; return 0 (no access) on error. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/platform/x86/asus-wmi.c')
-rw-r--r--drivers/platform/x86/asus-wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 3c7857c71a23..65b66aa44c78 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -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) {