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: Sarah Khan <sarahjmi07@gmail.com> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
48131a6bda
commit
35b042a550
1 changed files with 1 additions and 3 deletions
|
@ -605,10 +605,8 @@ static void gdm_wimax_netif_rx(struct net_device *dev, char *buf, int len)
|
|||
int ret;
|
||||
|
||||
skb = dev_alloc_skb(len + 2);
|
||||
if (!skb) {
|
||||
netdev_err(dev, "%s: dev_alloc_skb failed!\n", __func__);
|
||||
if (!skb)
|
||||
return;
|
||||
}
|
||||
skb_reserve(skb, 2);
|
||||
|
||||
dev->stats.rx_packets++;
|
||||
|
|
Loading…
Reference in a new issue