]> git.baikalelectronics.ru Git - kernel.git/commit
net: cpsw: Add missing return value
authorMarkus Pargmann <mpa@pengutronix.de>
Mon, 29 Sep 2014 06:53:14 +0000 (08:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Sep 2014 05:30:42 +0000 (01:30 -0400)
commit851b71b3ba976a8142135e601bc7381a3e7d4206
treeca7f336afa883fb5fa1b719b7f0ada859490101a
parent0826418c98b26d28395ca4310046849e4a0f2fd2
net: cpsw: Add missing return value

ret is set 0 at this point, so jumping to that error label would result
in a return value of 0. Set ret to -ENOMEM to return a proper error
value.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Reviewed-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c