iio: mxs-lradc: remove useless check
commitc842f241956f880fbba9bc041b196a249f80d131
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 18 Jan 2014 19:05:00 +0000 (18 19:05 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 3 Feb 2014 19:07:44 +0000 (3 19:07 +0000)
treebd426f6fc3db092fee92a7554ba120b829eb89ae
parent1a0e576661487db2c7a2b4c7844ea38c46beda9e
iio: mxs-lradc: remove useless check

Checking the channel number is useless since mxs_lradc_read_raw() is called from
a controlled environment and the driver is responsible for filing the struct
iio_chan_spec.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/mxs-lradc.c