* [PATCH v2] Staging: wlan-ng: Convert explicit comparison to NULL to !x.
@ 2016-02-20 11:19 Sandhya Bankar
2016-02-20 19:22 ` [Outreachy kernel] " Julia Lawall
0 siblings, 1 reply; 4+ messages in thread
From: Sandhya Bankar @ 2016-02-20 11:19 UTC (permalink / raw)
To: outreachy-kernel
Convert explicit comparison to NULL to !x.
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2] Staging: wlan-ng: Convert explicit comparison to NULL to !x.
@ 2016-02-20 11:23 Sandhya Bankar
2016-02-20 19:33 ` sandhya bankar
0 siblings, 1 reply; 4+ messages in thread
From: Sandhya Bankar @ 2016-02-20 11:23 UTC (permalink / raw)
To: outreachy-kernel
Convert explicit comparison to NULL to !x.
Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
---
drivers/staging/wlan-ng/cfg80211.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index 8c1e3f0..c59dd33 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -303,7 +303,7 @@ static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
memset(sinfo, 0, sizeof(*sinfo));
- if ((wlandev == NULL) || (wlandev->msdstate != WLAN_MSD_RUNNING))
+ if (!wlandev || (wlandev->msdstate != WLAN_MSD_RUNNING))
return -EOPNOTSUPP;
/* build request message */
@@ -312,7 +312,7 @@ static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
quality.dbm.status = P80211ENUM_msgitem_status_data_ok;
/* send message to nsd */
- if (wlandev->mlmerequest == NULL)
+ if (!wlandev->mlmerequest)
return -EOPNOTSUPP;
result = wlandev->mlmerequest(wlandev, (struct p80211msg *) &quality);
--
1.8.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Outreachy kernel] [PATCH v2] Staging: wlan-ng: Convert explicit comparison to NULL to !x.
2016-02-20 11:19 [PATCH v2] Staging: wlan-ng: Convert explicit comparison to NULL to !x Sandhya Bankar
@ 2016-02-20 19:22 ` Julia Lawall
0 siblings, 0 replies; 4+ messages in thread
From: Julia Lawall @ 2016-02-20 19:22 UTC (permalink / raw)
To: Sandhya Bankar; +Cc: outreachy-kernel
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 <bankarsandhya512@gmail.com>
> ---
> 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.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] Staging: wlan-ng: Convert explicit comparison to NULL to !x.
2016-02-20 11:23 Sandhya Bankar
@ 2016-02-20 19:33 ` sandhya bankar
0 siblings, 0 replies; 4+ messages in thread
From: sandhya bankar @ 2016-02-20 19:33 UTC (permalink / raw)
To: outreachy-kernel
[-- Attachment #1: Type: text/plain, Size: 1448 bytes --]
I already sent v2 without adding any comment below sign-off ..
now should i send v3 with mentioning comment?
sorry for all this mistakes.
Thanks
On Sat, Feb 20, 2016 at 4:53 PM, Sandhya Bankar <bankarsandhya512@gmail.com>
wrote:
> Convert explicit comparison to NULL to !x.
>
> Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
> ---
> drivers/staging/wlan-ng/cfg80211.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/wlan-ng/cfg80211.c
> b/drivers/staging/wlan-ng/cfg80211.c
> index 8c1e3f0..c59dd33 100644
> --- a/drivers/staging/wlan-ng/cfg80211.c
> +++ b/drivers/staging/wlan-ng/cfg80211.c
> @@ -303,7 +303,7 @@ static int prism2_get_station(struct wiphy *wiphy,
> struct net_device *dev,
>
> memset(sinfo, 0, sizeof(*sinfo));
>
> - if ((wlandev == NULL) || (wlandev->msdstate != WLAN_MSD_RUNNING))
> + if (!wlandev || (wlandev->msdstate != WLAN_MSD_RUNNING))
> return -EOPNOTSUPP;
>
> /* build request message */
> @@ -312,7 +312,7 @@ static int prism2_get_station(struct wiphy *wiphy,
> struct net_device *dev,
> quality.dbm.status = P80211ENUM_msgitem_status_data_ok;
>
> /* send message to nsd */
> - if (wlandev->mlmerequest == NULL)
> + if (!wlandev->mlmerequest)
> return -EOPNOTSUPP;
>
> result = wlandev->mlmerequest(wlandev, (struct p80211msg *)
> &quality);
> --
> 1.8.3.4
>
>
[-- Attachment #2: Type: text/html, Size: 2134 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-20 19:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-20 11:19 [PATCH v2] Staging: wlan-ng: Convert explicit comparison to NULL to !x Sandhya Bankar
2016-02-20 19:22 ` [Outreachy kernel] " Julia Lawall
-- strict thread matches above, loose matches on Subject: below --
2016-02-20 11:23 Sandhya Bankar
2016-02-20 19:33 ` sandhya bankar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.