staging: gdm72xx: Removed unnecesarry out of memory usage
authorSarah Khan <sarahjmi07@gmail.com>
Sun, 5 Oct 2014 18:55:51 +0000 (00:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:18 +0000 (10:29 +0800)
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>
drivers/staging/gdm72xx/gdm_wimax.c

index f5a3378c3951c9144e1edbbe26851022cab8ab10..5b7747f6b84707b732dcdf4bd9c015d0310d1f16 100644 (file)
@@ -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++;