iwlwifi: remove log_event debugfs file debugging is disabled
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jun 2012 06:46:25 +0000 (08:46 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Jun 2012 18:10:25 +0000 (14:10 -0400)
commit882b7b7d11d65e8eccce738f1ce97cdfdb998f9f
tree55568933ca51b277ee7e3defa2763c7cb8a29454
parentf18e3c6b67f448ec47b3a5b242789bd3d5644879
iwlwifi: remove log_event debugfs file debugging is disabled

When debugging is disabled, the event log functions aren't
functional in the way that the debugfs file expects. This
leads to the debugfs access crashing. Since the event log
functions aren't functional then, remove the debugfs file
when CONFIG_IWLWIFI_DEBUG is not set.

Cc: stable@kernel.org
Reported-by: Lekensteyn <lekensteyn@gmail.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-debugfs.c