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> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| sparx5_calendar.c | ||
| sparx5_ethtool.c | ||
| sparx5_fdma.c | ||
| sparx5_mactable.c | ||
| sparx5_main_regs.h | ||
| sparx5_main.c | ||
| sparx5_main.h | ||
| sparx5_netdev.c | ||
| sparx5_packet.c | ||
| sparx5_phylink.c | ||
| sparx5_port.c | ||
| sparx5_port.h | ||
| sparx5_switchdev.c | ||
| sparx5_vlan.c | ||