[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZPnRJWojgRsZvSTDWuxbOtQws5uQXDSPBBem6HE8iJgA@mail.gmail.com>
Date: Fri, 4 Oct 2019 23:08:02 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Markus Elfring <Markus.Elfring@....de>
Cc: netdev <netdev@...r.kernel.org>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
"David S. Miller" <davem@...emloft.net>,
Hans Ulli Kroll <ulli.kroll@...glemail.com>,
Radhey Shyam Pandey <radheys@...inx.com>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH v2] ethernet: gemini: Use devm_platform_ioremap_resource()
in gemini_ethernet_probe()
On Fri, Sep 20, 2019 at 11:23 AM Markus Elfring <Markus.Elfring@....de> wrote:
> From: Markus Elfring <elfring@...rs.sourceforge.net>
> Date: Fri, 20 Sep 2019 10:52:56 +0200
>
> Simplify this function implementation by using the wrapper function
> “devm_platform_ioremap_resource” instead of calling the functions
> “platform_get_resource” and “devm_ioremap_resource” directly.
>
> * Thus reduce also a bit of exception handling code here.
> * Delete the local variable “res”.
>
> This issue was detected by using the Coccinelle software.
>
> Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
Seems correct.
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
BR
Linus Walleij
Powered by blists - more mailing lists