staging:iio:ad7606: fix ptr_ret.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Sat, 22 Oct 2016 19:12:42 +0000 (03:12 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:27 +0000 (19:34 +0100)
commitdbdef9ba693a5ac7d92368cef7d436b3093e9f4e
treebc9922589c9cfb249a70bcf92e68b7de77d711e4
parenta84a6a8aa0f6e02dec63a2ff69946f80785e35b9
staging:iio:ad7606: fix ptr_ret.cocci warnings

drivers/staging/iio/adc/ad7606.c:357:1-3: WARNING: PTR_ERR_OR_ZERO can be used

 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: scripts/coccinelle/api/ptr_ret.cocci

CC: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7606.c