X-GM-THRID: 6253454979365863424 X-Received: by 10.28.156.83 with SMTP id f80mr327581wme.1.1455996155312; Sat, 20 Feb 2016 11:22:35 -0800 (PST) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.25.142.213 with SMTP id q204ls163340lfd.15.gmail; Sat, 20 Feb 2016 11:22:33 -0800 (PST) X-Received: by 10.112.17.37 with SMTP id l5mr2519226lbd.21.1455996153617; Sat, 20 Feb 2016 11:22:33 -0800 (PST) Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr. [192.134.164.83]) by gmr-mx.google.com with ESMTPS id c143si680741wmd.1.2016.02.20.11.22.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Feb 2016 11:22:33 -0800 (PST) Received-SPF: neutral (google.com: 192.134.164.83 is neither permitted nor denied by domain of julia.lawall@lip6.fr) client-ip=192.134.164.83; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.134.164.83 is neither permitted nor denied by domain of julia.lawall@lip6.fr) smtp.mailfrom=julia.lawall@lip6.fr X-IronPort-AV: E=Sophos;i="5.22,477,1449529200"; d="scan'208";a="203923991" Received: from 68-74-177-106.lightspeed.wepbfl.sbcglobal.net (HELO hadrien) ([68.74.177.106]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 20 Feb 2016 20:22:31 +0100 Date: Sat, 20 Feb 2016 14:22:25 -0500 (EST) From: Julia Lawall X-X-Sender: jll@hadrien To: Sandhya Bankar cc: outreachy-kernel@googlegroups.com Subject: Re: [Outreachy kernel] [PATCH v2] Staging: wlan-ng: Convert explicit comparison to NULL to !x. In-Reply-To: <20160220111903.GA3134@sandhya> Message-ID: References: <20160220111903.GA3134@sandhya> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 20 Feb 2016, Sandhya Bankar wrote: > Convert explicit comparison to NULL to !x. When you send a v2, you need to say what changed in the v2, below the --- julia > > Signed-off-by: Sandhya Bankar > --- > drivers/staging/wlan-ng/p80211conv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/wlan-ng/p80211conv.c b/drivers/staging/wlan-ng/p80211conv.c > index 1b02cdf..86fd23f 100644 > --- a/drivers/staging/wlan-ng/p80211conv.c > +++ b/drivers/staging/wlan-ng/p80211conv.c > @@ -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; > -- > 1.8.3.4 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To post to this group, send email to outreachy-kernel@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20160220111903.GA3134%40sandhya. > For more options, visit https://groups.google.com/d/optout. >