OSDN Git Service

net: sparx5: fix resource_size.cocci warnings
authorYang Li <yang.lee@linux.alibaba.com>
Sun, 26 Sep 2021 07:42:12 +0000 (15:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 12:27:45 +0000 (13:27 +0100)
commit867d1ac99f11e4d03ecf00ebfe7c65baf7d3927a
treeb0a8cb1ec2b6593aad0ebcc9559ad98fa3816f72
parent4247ef02693716f9df87c37a181b7120c7b24648
net: sparx5: fix resource_size.cocci warnings

Use resource_size function on resource object
instead of explicit computation.

Clean up coccicheck warning:
./drivers/net/ethernet/microchip/sparx5/sparx5_main.c:237:19-22: ERROR:
Missing resource_size with iores [ idx ]

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/sparx5/sparx5_main.c