[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdZi-W-vnCH05C4CkQdnYtUKuD4NWoBTh8hGXmok_=Dsfw@mail.gmail.com>
Date: Sat, 5 Jun 2021 17:17:33 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Yang Yingliang <yangyingliang@...wei.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
netdev <netdev@...r.kernel.org>,
Hans Ulli Kroll <ulli.kroll@...glemail.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>
Subject: Re: [PATCH net-next v2] net: gemini: Use devm_platform_get_and_ioremap_resource()
On Sat, Jun 5, 2021 at 2:32 PM Yang Yingliang <yangyingliang@...wei.com> wrote:
> Use devm_platform_get_and_ioremap_resource() to simplify
> code.
>
> Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
(...)
> - dmares = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - gmacres = platform_get_resource(pdev, IORESOURCE_MEM, 1);
Should you not also delete the local variables
dmares and gmacres? I doubt they are used
after this.
Yours,
Linus Walleij
Powered by blists - more mailing lists