diff options
-rw-r--r-- | drivers/platform/x86/asus-wmi.c | 2 |
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, | |||
857 | int err = asus_wmi_get_devstate(asus, dev_id, &value); | 857 | int err = asus_wmi_get_devstate(asus, dev_id, &value); |
858 | 858 | ||
859 | if (err < 0) | 859 | if (err < 0) |
860 | return err; | 860 | return 0; /* can't return negative here */ |
861 | } | 861 | } |
862 | 862 | ||
863 | if (dev_id == ASUS_WMI_DEVID_FAN_CTRL) { | 863 | if (dev_id == ASUS_WMI_DEVID_FAN_CTRL) { |