diff options
| author | Amitoj Kaur Chawla <[email protected]> | 2016-02-16 23:44:31 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-02-20 14:43:48 -0800 |
| commit | 0fd736f9f4d2aea8dd63bd3e622da8a955e11c82 (patch) | |
| tree | aafb28ece04cb19c19a58d24267129002dbee804 /tools/perf/scripts/python | |
| parent | 6a707a9eb9de373ba3ed2f85d44dce8bda229afc (diff) | |
staging: iio: adc: Remove unnecessary test from if conditions
Remove unnecessary test condition on ret variable which has been
previously tested and returns its value if the value is non zero.
This fixes the following smatch warnings:
drivers/staging/iio/adc/ad7816.c:299 ad7816_set_oti() warn: we tested
'ret' before and it was 'false'
drivers/staging/iio/adc/ad7816.c:306 ad7816_set_oti() warn: we tested
'ret' before and it was 'false'
Signed-off-by: Amitoj Kaur Chawla <[email protected]>
Reviewed-by: Daniel Baluta <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions