Re: [PATCH 2/2] lpc_eth: Use resource_size instead of computation

2014-06-01 Thread David Miller
From: Benoit Taine Date: Wed, 28 May 2014 17:14:07 +0200 > @@ -1419,8 +1419,7 @@ static int lpc_eth_drv_probe(struct platform_device > *pdev) > > netdev_dbg(ndev, "IO address start :0x%08x\n", > res->start); > - netdev_dbg(ndev, "IO address size :%d\n",

Re: [PATCH 2/2] lpc_eth: Use resource_size instead of computation

2014-05-28 Thread Joe Perches
On Wed, 2014-05-28 at 17:14 +0200, Benoit Taine wrote: > This issue was reported by coccicheck using the semantic patch > at scripts/coccinelle/api/resource_size.cocci Slightly associated trivial note: > diff --git a/drivers/net/ethernet/nxp/lpc_eth.c > b/drivers/net/ethernet/nxp/lpc_eth.c [] >

[PATCH 2/2] lpc_eth: Use resource_size instead of computation

2014-05-28 Thread Benoit Taine
This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/resource_size.cocci Signed-off-by: Benoit Taine --- Not compile tested, due incompatible architecture. drivers/net/ethernet/nxp/lpc_eth.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff