staging: wilc1000: wilc_wfi_cfgoperations.c: removes unnecessary log messages
authorChris Park <chris.park@atmel.com>
Mon, 22 Feb 2016 04:12:04 +0000 (13:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Feb 2016 19:47:00 +0000 (11:47 -0800)
This patch removes unnecessary log messages.

Signed-off-by: Chris Park <chris.park@atmel.com>
Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 75a45dfde53e200bbf260af5ec773fdfa829a9e0..a7aa3d247603a14c4f2768bbcf99161abb2c6d77 100644 (file)
@@ -2315,7 +2315,6 @@ int wilc_init_host_int(struct net_device *net)
 
        struct wilc_priv *priv;
 
-       PRINT_D(INIT_DBG, "Host[%p][%p]\n", net, net->ieee80211_ptr);
        priv = wdev_priv(net->ieee80211_ptr);
        if (op_ifcs == 0) {
                setup_timer(&hAgingTimer, remove_network_from_shadow, 0);
@@ -2364,24 +2363,17 @@ int wilc_deinit_host_int(struct net_device *net)
 
 void wilc_free_wiphy(struct net_device *net)
 {
-       if (!net) {
-               PRINT_D(INIT_DBG, "net_device is NULL\n");
+       if (!net)
                return;
-       }
 
-       if (!net->ieee80211_ptr) {
-               PRINT_D(INIT_DBG, "ieee80211_ptr is NULL\n");
+       if (!net->ieee80211_ptr)
                return;
-       }
 
-       if (!net->ieee80211_ptr->wiphy) {
-               PRINT_D(INIT_DBG, "wiphy is NULL\n");
+       if (!net->ieee80211_ptr->wiphy)
                return;
-       }
 
        wiphy_unregister(net->ieee80211_ptr->wiphy);
 
-       PRINT_D(INIT_DBG, "Freeing wiphy\n");
        wiphy_free(net->ieee80211_ptr->wiphy);
        kfree(net->ieee80211_ptr);
 }