]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: reduce debug ifdefs using the optimiser
authorJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2013 07:56:51 +0000 (09:56 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 13 Jun 2013 10:05:50 +0000 (12:05 +0200)
commita8175f3c4b99ba1c99f87cfe661b599d64587974
tree9271622e696002e527d77f1460ec3da402596ed4
parent17a0fb921975042b635deed3b1da22d360ac03e1
iwlwifi: reduce debug ifdefs using the optimiser

Instead of using #ifdef CONFIG_IWLWIFI_DEBUG, remove the
iwlwifi_mod_params.debug_level variable completely and
make iwl_have_debug_level() always return false in the
non-debug case. This way, the optimiser will elide all
code for it automatically without having to add #ifdefs.

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/main.c
drivers/net/wireless/iwlwifi/iwl-debug.h
drivers/net/wireless/iwlwifi/iwl-modparams.h
drivers/net/wireless/iwlwifi/pcie/rx.c