aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/wl12xx/debugfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/debugfs.c b/drivers/net/wireless/wl12xx/debugfs.c
index 2ac289e51484..8106a6c8a1ba 100644
--- a/drivers/net/wireless/wl12xx/debugfs.c
+++ b/drivers/net/wireless/wl12xx/debugfs.c
@@ -414,6 +414,9 @@ err:
414 414
415void wl1271_debugfs_reset(struct wl1271 *wl) 415void wl1271_debugfs_reset(struct wl1271 *wl)
416{ 416{
417 if (!wl->rootdir)
418 return;
419
417 memset(wl->stats.fw_stats, 0, sizeof(*wl->stats.fw_stats)); 420 memset(wl->stats.fw_stats, 0, sizeof(*wl->stats.fw_stats));
418 wl->stats.retry_count = 0; 421 wl->stats.retry_count = 0;
419 wl->stats.excessive_retries = 0; 422 wl->stats.excessive_retries = 0;