From: Simon Horman Date: Thu, 25 Feb 2010 13:50:19 +0000 (+0000) Subject: greth: fall through to common return statement on error X-Git-Tag: MMI-PSA29.97-13-9~24841^2~58 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c43491d73ea04277c92a4aa1a7e63ccab4577756;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git greth: fall through to common return statement on error There doesn't seem to be any reason to explicitly return NETDEV_TX_OK as err is set to NETDEV_TX_OK in all cases that reach this point. Signed-off-by: Simon Horman Signed-off-by: David S. Miller --- diff --git a/drivers/net/greth.c b/drivers/net/greth.c index d75b46141603..2b9c1cbc9ec1 100644 --- a/drivers/net/greth.c +++ b/drivers/net/greth.c @@ -560,8 +560,6 @@ map_error: if (net_ratelimit()) dev_warn(greth->dev, "Could not create TX DMA mapping\n"); dev_kfree_skb(skb); - return NETDEV_TX_OK; - out: return err; }