diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-04-10 20:23:51 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-04-14 14:50:09 +0200 |
commit | 8e4fefec0174b43fd149dee159131c88cb623664 (patch) | |
tree | 304d64578cc742e8438782a6a313172cd55f5e8f /drivers/hwmon/emc1403.c | |
parent | iio: imu: st_lsm6dsx: remove set but not used variables 'acc_sensor' and 'gyr... (diff) | |
download | linux-8e4fefec0174b43fd149dee159131c88cb623664.tar.xz linux-8e4fefec0174b43fd149dee159131c88cb623664.zip |
iio: temperature: max31856: fix uninitialized error return
Currently if mask is neither CHAN_INFO_RAW or CHAN_INFO_SCALE then
then an uninitialized error return 'ret' is returned. Fix this by
adding a default case that ensures -EINVAL is returned for this
specific case.
Addresses-Coverity: ("Uninitialized scalar variable")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/hwmon/emc1403.c')
0 files changed, 0 insertions, 0 deletions