aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2015-11-10 22:18:16 +0000
committerDarren Hart <[email protected]>2015-11-11 06:22:15 +0000
commitb82983401684ba06fcf3fbafa63edf371c0d4775 (patch)
tree61a6b69cbd5a8c9c4b30ad8b93230d8400435ec0 /drivers/fpga/fpga-mgr.c
parentideapad-laptop: Add Lenovo Yoga 900 to no_hw_rfkill dmi list (diff)
downloadkernel-b82983401684ba06fcf3fbafa63edf371c0d4775.tar.gz
kernel-b82983401684ba06fcf3fbafa63edf371c0d4775.zip
asus-wmi: fix error handling in store_sys_wmi()
The asus_wmi_get_devstate_simple() returns 0-1 on success. In theory according to static checkers, it can return either -EIO or -ENODEV on failure. Currently the error handling code only handles -ENODEV and -EIO is treated as success. Let's make it handle the -EIO error as well. It's possible that it can't actually return -EIO and this patch is not needed but in that case this patch is harmless and silences a static checker warning so it's still worth it. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Darren Hart <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions