[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdac+fBez9rX6Ewqng9mbywKBcMN3VACdMO7mhh=dXUnow@mail.gmail.com>
Date: Thu, 24 Mar 2022 01:39:34 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Jialin Zhang <zhangjialin11@...wei.com>
Cc: j.neuschaefer@....net, openbmc@...ts.ozlabs.org,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] pinctrl: nuvoton: Fix return value check in wpcm450_gpio_register()
On Thu, Mar 17, 2022 at 7:49 AM Jialin Zhang <zhangjialin11@...wei.com> wrote:
> In case of error, the function devm_platform_ioremap_resource()
> returns ERR_PTR() and never returns NULL. The NULL test in the
> return value check should be replaced with IS_ERR().
>
> Fixes: a1d1e0e3d80a ("pinctrl: nuvoton: Add driver for WPCM450")
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Jialin Zhang <zhangjialin11@...wei.com>
Patch applied!
Yours,
Linus Walleij
Powered by blists - more mailing lists