Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1514067 > unrolled thread

[PATCH 3/5] staging: wlan-ng: change comparison to NULL to preferred style.

Started bySergio Paracuellos <sergio.paracuellos@gmail.com>
First post2016-11-02 19:50 +0100
Last post2016-11-02 19:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/5] staging: wlan-ng: change comparison to NULL to preferred style. Sergio Paracuellos <sergio.paracuellos@gmail.com> - 2016-11-02 19:50 +0100

#1514067 — [PATCH 3/5] staging: wlan-ng: change comparison to NULL to preferred style.

FromSergio Paracuellos <sergio.paracuellos@gmail.com>
Date2016-11-02 19:50 +0100
Subject[PATCH 3/5] staging: wlan-ng: change comparison to NULL to preferred style.
Message-ID<sz8LM-1va-21@gated-at.bofh.it>
Comparison to NULL could be written in preferred form.
Change it to comply with the standard kernel coding style.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/wlan-ng/p80211req.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wlan-ng/p80211req.c b/drivers/staging/wlan-ng/p80211req.c
index b3b33d2e..3414fd8 100644
--- a/drivers/staging/wlan-ng/p80211req.c
+++ b/drivers/staging/wlan-ng/p80211req.c
@@ -141,7 +141,7 @@ int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf)
 	p80211req_handlemsg(wlandev, msg);
 
 	/* Pass it down to wlandev via wlandev->mlmerequest */
-	if (wlandev->mlmerequest != NULL)
+	if (wlandev->mlmerequest)
 		wlandev->mlmerequest(wlandev, msg);
 
 	clear_bit(1, &(wlandev->request_pending));
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web