]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: wlan-ng: remove unnecessary 'out of memory' message
authorMelike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Fri, 3 Oct 2014 23:30:35 +0000 (02:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:29:17 +0000 (10:29 +0800)
This patch fixes "Possible unnecessary 'out of memory' message"
checkpatch.pl warning in hfa384x_usb.c

Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x_usb.c

index 898bde73c59a4a48422ec2536f9f1cec850038a0..55d2f563e308f914aa142708f269411955e3cf01 100644 (file)
@@ -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) &&