staging: wlan-ng: p80211conv.h: warning I don't understand

Gavin O'Leary goleary1 at hwemail.com
Wed Nov 11 21:33:07 EST 2015


Hello all,

I am new to the realm of linux kernel development. I've been sending in small patches to fix check-patch warnings. I was fixing up the file listed in the subject when I came across this warning.

drivers/staging/wlan-ng/p80211conv.c:622: WARNING: Possible unnecessary 'out of memory' message

Source Code:

if (rxmeta == NULL) {
                netdev_err(wlandev->netdev,
                           "%s: Failed to allocate rxmeta.\n", wlandev->name);
                result = 1;
                goto exit;
}

What is this warning about? How do I go about fixing it?

Thank you,
--Gavin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151112/c79fc1ff/attachment.html 


More information about the Kernelnewbies mailing list