Re: [PATCH -next 1/2] tsnep: fix resource_size.cocci warnings
From: Gerhard Engleder
Date: Wed Nov 24 2021 - 15:28:49 EST
> 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