aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2013-07-03 21:25:00 +0000
committerJonathan Cameron <[email protected]>2013-07-06 09:34:51 +0000
commit2a961d0995cdadbfba565b28beada59c5ae7ebae (patch)
tree370204d8dd4d0b59eb115d28724bba78898cdc32 /fs/btrfs/dev-replace.c
parentiio: mxs-lradc: Fix misuse of iio->trig (diff)
downloadkernel-2a961d0995cdadbfba565b28beada59c5ae7ebae.tar.gz
kernel-2a961d0995cdadbfba565b28beada59c5ae7ebae.zip
iio: mxs-lradc: Remove useless check in read_raw
The removed check in the read_raw implementation was always true, therefore remove it. This also fixes a bug, by closely inspecting the code, one can notice the iio_validate_scan_mask_onehot() will always return 1 and therefore the subsequent condition will always succeed, therefore making the mxs_lradc_read_raw() function always return -EINVAL; . Signed-off-by: Marek Vasut <[email protected]> Tested-by: Otavio Salvador <[email protected]> Acked-by: Hector Palacios <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions