staging: wlan-ng: Convert explicit comparison to NULL to !x.
PATCH 1/1 staging: wlan-ng: Convert explicit comparison to NULL to !x.
Convert explicit comparison to NULL to !x.
Signed-off-by Sandhya <[email protected]>
--- drivers/staging/wlan-ng/p80211conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wlan-ng/p80211conv.c +1 -1
@@ -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