aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/arm/ether1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/arm/ether1.c')
-rw-r--r--drivers/net/arm/ether1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/arm/ether1.c b/drivers/net/arm/ether1.c
index 36475eb2727..312955d07b2 100644
--- a/drivers/net/arm/ether1.c
+++ b/drivers/net/arm/ether1.c
@@ -700,8 +700,7 @@ ether1_sendpacket (struct sk_buff *skb, struct net_device *dev)
}
if (skb->len < ETH_ZLEN) {
- skb = skb_padto(skb, ETH_ZLEN);
- if (skb == NULL)
+ if (skb_padto(skb, ETH_ZLEN))
goto out;
}