diff options
| author | Colin Ian King <[email protected]> | 2019-04-10 19:23:51 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2019-04-14 13:50:09 +0100 |
| commit | 8e4fefec0174b43fd149dee159131c88cb623664 (patch) | |
| tree | 304d64578cc742e8438782a6a313172cd55f5e8f /tools/perf/scripts/python | |
| parent | 631bd2f7ec02ad9e3d1fa31765971387e7792483 (diff) | |
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 <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions