]> git.baikalelectronics.ru Git - kernel.git/commit
iio: dac: mcp4725: fix odd_ptr_err.cocci warnings
authorJulia Lawall <julia.lawall@lip6.fr>
Sat, 22 Oct 2016 20:41:32 +0000 (22:41 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:27 +0000 (19:34 +0100)
commitbbceaaa41e39a300940620e90fb3123c69373bd7
treef05716eb07d35de4d10d2a7cdf523eb16e1890fc
parent7d3af05b838c85e42404f5bc8ec06bf1182ce9b0
iio: dac: mcp4725: fix odd_ptr_err.cocci warnings

PTR_ERR should access the value just tested by IS_ERR

Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci

CC: Tomas Novotny <tomas@novotny.cz>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/mcp4725.c