staging: iio: adc: Remove unnecessary test from if conditions
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Tue, 16 Feb 2016 18:14:31 +0000 (23:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:43:48 +0000 (14:43 -0800)
commit0fd736f9f4d2aea8dd63bd3e622da8a955e11c82
treeaafb28ece04cb19c19a58d24267129002dbee804
parent6a707a9eb9de373ba3ed2f85d44dce8bda229afc
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 <amitoj1606@gmail.com>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/adc/ad7816.c