OSDN Git Service

staging: wlan-ng: remove unnecessary out of memory message in p80211conv.c
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 7 Nov 2016 17:55:19 +0000 (18:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 12:25:32 +0000 (13:25 +0100)
This patch fix the following checkpatch script warning:
WARNING: Possible unnecessary 'out of memory' message.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211conv.c

index 5080d42..8387e6a 100644 (file)
@@ -618,8 +618,6 @@ int p80211skb_rxmeta_attach(struct wlandevice *wlandev, struct sk_buff *skb)
        rxmeta = kzalloc(sizeof(*rxmeta), GFP_ATOMIC);
 
        if (!rxmeta) {
-               netdev_err(wlandev->netdev,
-                          "%s: Failed to allocate rxmeta.\n", wlandev->name);
                result = 1;
                goto exit;
        }