Commit 35b042a5 authored by Sarah Khan's avatar Sarah Khan Committed by Greg Kroah-Hartman

staging: gdm72xx: Removed unnecesarry out of memory usage

WARNING: Possible unnecessary out of memory usage
checkpatch.pl warning in gdm_wimax.c
Signed-off-by: default avatarSarah Khan <sarahjmi07@gmail.com>
Acked-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 48131a6b
...@@ -605,10 +605,8 @@ static void gdm_wimax_netif_rx(struct net_device *dev, char *buf, int len) ...@@ -605,10 +605,8 @@ static void gdm_wimax_netif_rx(struct net_device *dev, char *buf, int len)
int ret; int ret;
skb = dev_alloc_skb(len + 2); skb = dev_alloc_skb(len + 2);
if (!skb) { if (!skb)
netdev_err(dev, "%s: dev_alloc_skb failed!\n", __func__);
return; return;
}
skb_reserve(skb, 2); skb_reserve(skb, 2);
dev->stats.rx_packets++; dev->stats.rx_packets++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment