Commit e772aed369779c98f44e83ccd7fb1b713953cd09

Authored by Al Viro
1 parent 963945bf93

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/platform/x86/asus-wmi.c
... ... @@ -857,7 +857,7 @@
857 857 int err = asus_wmi_get_devstate(asus, dev_id, &value);
858 858  
859 859 if (err < 0)
860   - return err;
  860 + return 0; /* can't return negative here */
861 861 }
862 862  
863 863 if (dev_id == ASUS_WMI_DEVID_FAN_CTRL) {