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

Commit 619837ae authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: fix NULL comparison style



This patch fixes NULL comparison style found by checkpatch.pl.

CHECK: Comparison to NULL could be written "!net"
CHECK: Comparison to NULL could be written "!net->ieee80211_ptr"
CHECK: Comparison to NULL could be written "!net->ieee80211_ptr->wiphy"

Signed-off-by: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8459fd54
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -3694,17 +3694,17 @@ void wilc_free_wiphy(struct net_device *net)

	PRINT_D(CFG80211_DBG, "Unregistering wiphy\n");

	if (net == NULL) {
	if (!net) {
		PRINT_D(INIT_DBG, "net_device is NULL\n");
		return;
	}

	if (net->ieee80211_ptr == NULL) {
	if (!net->ieee80211_ptr) {
		PRINT_D(INIT_DBG, "ieee80211_ptr is NULL\n");
		return;
	}

	if (net->ieee80211_ptr->wiphy == NULL) {
	if (!net->ieee80211_ptr->wiphy) {
		PRINT_D(INIT_DBG, "wiphy is NULL\n");
		return;
	}