[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANr-f5w8YBr5UpC0rES+5P+A=ojK-9sqRnUMtRtf6VGCk6ifUg@mail.gmail.com>
Date: Wed, 24 Nov 2021 21:28:35 +0100
From: Gerhard Engleder <gerhard@...leder-embedded.com>
To: Yang Li <yang.lee@...ux.alibaba.com>
Cc: David Miller <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
netdev <netdev@...r.kernel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next 1/2] tsnep: fix resource_size.cocci warnings
> adapter->addr = devm_ioremap_resource(&pdev->dev, io);
> if (IS_ERR(adapter->addr))
> return PTR_ERR(adapter->addr);
> - adapter->size = io->end - io->start + 1;
> + adapter->size = resource_size(io);
In fact adapter->size can be removed completely, because it is used nowhere.
I will submit a patch.
Gerhard
Powered by blists - more mailing lists