diff options
| author | Colin Ian King <colin.king@canonical.com> | 2019-04-10 21:23:51 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-04-14 15:50:09 +0300 |
| commit | 8e4fefec0174b43fd149dee159131c88cb623664 (patch) | |
| tree | 304d64578cc742e8438782a6a313172cd55f5e8f /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 631bd2f7ec02ad9e3d1fa31765971387e7792483 (diff) | |
| download | linux-8e4fefec0174b43fd149dee159131c88cb623664.tar.xz | |
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 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
