projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
963945b
)
asus-wmi: ->is_visible() can't return negative
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 24 Jul 2011 00:59:40 +0000
(20:59 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 24 Jul 2011 14:12:19 +0000
(10:12 -0400)
It's mode_t; return 0 (no access) on error.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/platform/x86/asus-wmi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/asus-wmi.c
b/drivers/platform/x86/asus-wmi.c
index 3c7857c71a230e12b2fc1bac6446c08af0e0c893..65b66aa44c786f64dba15a94d607b292260630e7 100644
(file)
--- 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) {