iio: adc: ad7766: Remove unneeded gpiod NULL check
authorFabio Estevam <fabio.estevam@nxp.com>
Sun, 16 Jul 2017 21:26:03 +0000 (18:26 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 Jul 2017 20:47:31 +0000 (21:47 +0100)
commit8b298fb789aaf093897d2f2b905d0fbee8663c2e
tree1aa4185c478c021748c63c4064499ec6050b91f9
parent50db2cd408a4a8883e738874208c84527e3c6a41
iio: adc: ad7766: Remove unneeded gpiod NULL check

The gpiod API checks for NULL descriptors, so there is no need to
duplicate the check in the driver.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7766.c