diff options
author | Sarah Khan <sarahjmi07@gmail.com> | 2014-10-06 00:25:51 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-20 10:29:18 +0800 |
commit | 35b042a550e727cdc32a5d0a146ea5947b6a1c53 (patch) | |
tree | 292dc5f3f088e2c04919bacc3cc5400238d9c2ab /drivers/staging/gdm72xx | |
parent | 48131a6bda18d65a6c63de1e6c54dcf40eb6057c (diff) | |
download | op-kernel-dev-35b042a550e727cdc32a5d0a146ea5947b6a1c53.zip op-kernel-dev-35b042a550e727cdc32a5d0a146ea5947b6a1c53.tar.gz |
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>
Diffstat (limited to 'drivers/staging/gdm72xx')
-rw-r--r-- | drivers/staging/gdm72xx/gdm_wimax.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/gdm72xx/gdm_wimax.c b/drivers/staging/gdm72xx/gdm_wimax.c index f5a3378..5b7747f 100644 --- a/drivers/staging/gdm72xx/gdm_wimax.c +++ b/drivers/staging/gdm72xx/gdm_wimax.c @@ -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++; |