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

From: Linus Walleij
Date: Wed Jun 10 2020 - 07:09:37 EST


On Mon, Jun 8, 2020 at 3:03 AM kernel test robot <lkp@xxxxxxxxx> wrote:

> From: kernel test robot <lkp@xxxxxxxxx>
>
> 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æ, SPI")
> CC: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> Signed-off-by: kernel test robot <lkp@xxxxxxxxx>

Patch applied with Andy's ACK.

Yours,
Linus Walleij