All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/4] staging: rtl8723bs: fix comparsion to NULL - coding style
@ 2018-06-26  8:14 Michael Straube
  2018-06-26  8:14 ` [PATCH v3 2/4] staging: rtl8723bs: refactor rtw_macaddr_cfg() Michael Straube
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Michael Straube @ 2018-06-26  8:14 UTC (permalink / raw)
  To: gregkh
  Cc: devel, linux-kernel, joe, dan.carpenter, andy.shevchenko,
	Michael Straube

Fix comparsion to NULL issues found by checkpatch.
Use !x instead of x == NULL.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
index 0822e440204e..e55895632921 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
@@ -747,7 +747,7 @@ u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen)
 	u8 match = false;
 	u8 eid, wps_oui[4] = {0x0, 0x50, 0xf2, 0x04};
 
-	if (ie_ptr == NULL)
+	if (!ie_ptr)
 		return match;
 
 	eid = ie_ptr[0];
@@ -1163,7 +1163,7 @@ void rtw_macaddr_cfg(struct device *dev, u8 *mac_addr)
 	const unsigned char *addr;
 	int len;
 
-	if (mac_addr == NULL)
+	if (!mac_addr)
 		return;
 
 	if (rtw_initmac) {	/* 	Users specify the mac address */
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2018-06-27 18:36 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-26  8:14 [PATCH v3 1/4] staging: rtl8723bs: fix comparsion to NULL - coding style Michael Straube
2018-06-26  8:14 ` [PATCH v3 2/4] staging: rtl8723bs: refactor rtw_macaddr_cfg() Michael Straube
2018-06-26 17:29   ` Andy Shevchenko
2018-06-26 19:19     ` Michael Straube
2018-06-26  8:14 ` [PATCH v3 3/4] staging: rtl8723bs: use ether_addr_copy() in rtw_macaddr_cfg() Michael Straube
2018-06-26 17:32   ` Andy Shevchenko
2018-06-26 19:44     ` Michael Straube
2018-06-26 20:17       ` Joe Perches
2018-06-26 20:32         ` Michael Straube
2018-06-26 21:36           ` Joe Perches
2018-06-27  8:33           ` Dan Carpenter
2018-06-27 12:56             ` Michael Straube
2018-06-27 13:11               ` Dan Carpenter
2018-06-27 16:14                 ` Andy Shevchenko
2018-06-27 16:42                   ` Joe Perches
2018-06-27 18:35                     ` Dan Carpenter
2018-06-26  8:14 ` [PATCH v3 4/4] staging: rtl8723bs: use mac_pton() " Michael Straube
2018-06-26 17:34   ` Andy Shevchenko
2018-06-26 20:48     ` Michael Straube

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.