aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/declance.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/declance.c')
-rw-r--r--drivers/net/declance.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/declance.c b/drivers/net/declance.c
index f130bdab3fd3..d3d958e7ac56 100644
--- a/drivers/net/declance.c
+++ b/drivers/net/declance.c
@@ -885,8 +885,7 @@ static int lance_start_xmit(struct sk_buff *skb, struct net_device *dev)
885 len = skblen; 885 len = skblen;
886 886
887 if (len < ETH_ZLEN) { 887 if (len < ETH_ZLEN) {
888 skb = skb_padto(skb, ETH_ZLEN); 888 if (skb_padto(skb, ETH_ZLEN))
889 if (skb == NULL)
890 return 0; 889 return 0;
891 len = ETH_ZLEN; 890 len = ETH_ZLEN;
892 } 891 }