Re: [PATCH] pinctrl: mcp23s08: Split to three parts: fix ptr_ret.cocci warnings

2020-06-10 Thread Linus Walleij
On Mon, Jun 8, 2020 at 3:03 AM kernel test robot wrote: > From: kernel test robot > > 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 >

Re: [PATCH] pinctrl: mcp23s08: Split to three parts: fix ptr_ret.cocci warnings

2020-06-07 Thread Andy Shevchenko
On Mon, Jun 08, 2020 at 09:02:53AM +0800, kernel test robot wrote: > From: kernel test robot > > 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

[PATCH] pinctrl: mcp23s08: Split to three parts: fix ptr_ret.cocci warnings

2020-06-07 Thread kernel test robot
From: kernel test robot 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,