summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChaehyun Lim2015-09-20 08:51:10 +0200
committerGreg Kroah-Hartman2015-09-21 04:02:10 +0200
commit619837aea8fef3e3a08e4158f79b51118e552fec (patch)
treedfd736920dfd7187912fb00e84968e2fb93a3c64
parentstaging: wilc1000: rename WILC_WFI_WiphyRegister (diff)
downloadkernel-qcow2-linux-619837aea8fef3e3a08e4158f79b51118e552fec.tar.gz
kernel-qcow2-linux-619837aea8fef3e3a08e4158f79b51118e552fec.tar.xz
kernel-qcow2-linux-619837aea8fef3e3a08e4158f79b51118e552fec.zip
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: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/wilc1000/wilc_wfi_cfgoperations.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index e51745e74dc7..af11af3f7ac2 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -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;
}