Skip to contentSkip to conversation

staging: wlan-ng: Convert explicit comparison to NULL to !x.

PATCH Superseded Sandhya 1 participant 1 message Feb 20, 2016 Staging

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Sandhya

author
#0 lore raw

PATCH 1/1 staging: wlan-ng: Convert explicit comparison to NULL to !x.

Convert explicit comparison to NULL to !x.

---
 drivers/staging/wlan-ng/p80211conv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wlan-ng/p80211conv.c +1 -1
index 1b02cdf..86fd23f 100644
@@ -613,7 +613,7 @@ int p80211skb_rxmeta_attach(struct wlandevice *wlandev, struct sk_buff *skb)
 	/* Allocate the rxmeta */
 	rxmeta = kzalloc(sizeof(struct p80211_rxmeta), GFP_ATOMIC);
 
-	if (rxmeta == NULL) {
+	if (!rxmeta) {
 		netdev_err(wlandev->netdev,
 			   "%s: Failed to allocate rxmeta.\n", wlandev->name);
 		result = 1;
Signature · 1 line
1.8.3.4