iio: adc: xilinx: Remove dead code from xadc_zynq_setup
authorManish Narani <manish.narani@xilinx.com>
Wed, 18 Jul 2018 11:12:09 +0000 (16:42 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Jul 2018 18:18:11 +0000 (19:18 +0100)
commitc344a327baefc372b7f4b7d0c17ac8b417ceaf94
treed3d125d449e35f9c34c2b987bb329638e2a09d95
parent39e27533cdb4affdec79a89308ab9133a6e0e5c7
iio: adc: xilinx: Remove dead code from xadc_zynq_setup

This patch removes dead code from xadc_zynq_setup. The condition
"if (tck_rate > XADC_ZYNQ_TCK_RATE_MAX)" cannot be true at any point of
time. There is also an incompatible parameter used in the code.
This patch fixes the same reported by coverity.

Signed-off-by: Manish Narani <manish.narani@xilinx.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/xilinx-xadc-core.c