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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I realized there is a typo in the subject, the file is p80211conv.c and not .h

From: kernelnewbies-bounces@xxxxxxxxxxxxxxxxx [kernelnewbies-bounces@xxxxxxxxxxxxxxxxx] on behalf of Gavin O'Leary [goleary1@xxxxxxxxxxx]
Sent: Wednesday, November 11, 2015 6:33 PM
To: kernelnewbies@xxxxxxxxxxxxxxxxx
Subject: staging: wlan-ng: p80211conv.h: warning I don't understand

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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux