sh_eth: kill 'ret' variable in sh_eth_ring_init()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 3 Nov 2015 21:17:08 +0000 (00:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Nov 2015 01:59:07 +0000 (20:59 -0500)
commit91d80683fc1828141e87babbd01f40e408864914
tree190e1d75f782b2e4c19a9400caf6b94d303cd07e
parent1f71e8c96fc654724723ce987e0a8b2aeb81746d
sh_eth: kill 'ret' variable in sh_eth_ring_init()

The 'ret' local variable in sh_eth_ring_init() serves no useful purpose as
the only  values it gets assigned are 0 and -ENOMEM both of which could be
returned directly...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c