Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05ccc706 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723bs: fix comparsion to NULL - coding style



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

Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6d2b0f7b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */