From: Melike Yurtoglu Date: Fri, 3 Oct 2014 23:30:35 +0000 (+0300) Subject: staging: wlan-ng: remove unnecessary 'out of memory' message X-Git-Tag: v4.14-rc1~6283^2~1209 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb282bcd9c957387097cde370905784993281df6;p=platform%2Fkernel%2Flinux-rpi.git staging: wlan-ng: remove unnecessary 'out of memory' message This patch fixes "Possible unnecessary 'out of memory' message" checkpatch.pl warning in hfa384x_usb.c Signed-off-by: Melike Yurtoglu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c index 898bde7..55d2f56 100644 --- a/drivers/staging/wlan-ng/hfa384x_usb.c +++ b/drivers/staging/wlan-ng/hfa384x_usb.c @@ -3583,12 +3583,8 @@ static void hfa384x_int_rxmonitor(wlandevice_t *wlandev, } skb = dev_alloc_skb(skblen); - if (skb == NULL) { - netdev_err(hw->wlandev->netdev, - "alloc_skb failed trying to allocate %d bytes\n", - skblen); + if (skb == NULL) return; - } /* only prepend the prism header if in the right mode */ if ((wlandev->netdev->type == ARPHRD_IEEE80211_PRISM) &&