Commit 1aad9634 authored by Gerhard Engleder's avatar Gerhard Engleder Committed by Jakub Kicinski

tsnep: Fix resource_size cocci warning

The following warning is fixed, by removing the unused resource size:

drivers/net/ethernet/engleder/tsnep_main.c:1155:21-24:
WARNING: Suspicious code. resource_size is maybe missing with io
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarGerhard Engleder <gerhard@engleder-embedded.com>
Link: https://lore.kernel.org/r/20211124205225.13985-1-gerhard@engleder-embedded.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6a9d66a0
...@@ -125,7 +125,6 @@ struct tsnep_adapter { ...@@ -125,7 +125,6 @@ struct tsnep_adapter {
struct platform_device *pdev; struct platform_device *pdev;
struct device *dmadev; struct device *dmadev;
void __iomem *addr; void __iomem *addr;
unsigned long size;
int irq; int irq;
bool gate_control; bool gate_control;
......
...@@ -1152,7 +1152,6 @@ static int tsnep_probe(struct platform_device *pdev) ...@@ -1152,7 +1152,6 @@ static int tsnep_probe(struct platform_device *pdev)
adapter->addr = devm_ioremap_resource(&pdev->dev, io); adapter->addr = devm_ioremap_resource(&pdev->dev, io);
if (IS_ERR(adapter->addr)) if (IS_ERR(adapter->addr))
return PTR_ERR(adapter->addr); return PTR_ERR(adapter->addr);
adapter->size = io->end - io->start + 1;
adapter->irq = platform_get_irq(pdev, 0); adapter->irq = platform_get_irq(pdev, 0);
netdev->mem_start = io->start; netdev->mem_start = io->start;
netdev->mem_end = io->end; netdev->mem_end = io->end;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment