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 <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Simon Horman 2010-02-25 13:50:19 +00:00 коммит произвёл David S. Miller
Родитель e5e26d75f4
Коммит c43491d73e
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -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;
}