]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit984a1c0921be6b97ec8314b7eafc96be2357bbc3
treed3d125d449e35f9c34c2b987bb329638e2a09d95
parent856c90c90c8d28e81c60851cbc48520636c302cc
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