Re: [PATCH] spi: stm32: Fix a NULL vs IS_ERR() bug

From: Mark Brown
Date: Fri Mar 07 2025 - 08:24:27 EST


On Fri, Mar 07, 2025 at 09:59:42AM +0100, Patrice CHOTARD wrote:
> On 3/7/25 04:25, Charles Han wrote:

> > The devm_ioremap() function doesn't return error pointers, it may
> > returns NULL. Update the error checking to match.

> No need to copy/paste other contributor's patch by just swapping some
> words in title/commit message.

> This fix has already sent By Dan Carpenter and merged.

No idea if it applies here or not but since a lot of Dan's work is based
on static checker results it's quite common to see duplicates of his
patches when someone else runs the same or similar checkers - I think
all the people running these checkers are aware this happens but often
figure it's easier to send the duplicates than to check -next.

Attachment: signature.asc
Description: PGP signature