]> www.infradead.org Git - users/hch/block.git/commit
pinctrl: mcp23s08: Split to three parts: fix ptr_ret.cocci warnings
authorkernel test robot <lkp@intel.com>
Mon, 8 Jun 2020 01:02:53 +0000 (09:02 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Jun 2020 08:19:53 +0000 (10:19 +0200)
commit3e5b8f87994e1269a7a9ea1862df163b110932eb
tree6e1174ce8e6f21682c293f6473d8676a3e7c62ea
parent782b6b69847f34dda330530493ea62b7de3fd06a
pinctrl: mcp23s08: Split to three parts: fix ptr_ret.cocci warnings

drivers/pinctrl/pinctrl-mcp23s08_spi.c:129: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

Fixes: 0f04a81784fe ("pinctrl: mcp23s08: Split to three parts: core, I²C, SPI")
Signed-off-by: kernel test robot <lkp@intel.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
CC: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200608010253.GA79576@44f7ab9e8d59
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08_spi.c