From: Marek Vasut Date: Wed, 3 Jul 2013 21:25:00 +0000 (+0100) Subject: iio: mxs-lradc: Remove useless check in read_raw X-Git-Tag: v3.11-rc2~3^2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a961d0995cdadbfba565b28beada59c5ae7ebae;p=pandora-kernel.git 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 Tested-by: Otavio Salvador Acked-by: Hector Palacios Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed