aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-12-02 15:52:59 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-12-04 14:16:25 -0500
commitbd3709b546f0113b41f0ecceaf3452a073739bbc (patch)
treea59f5b0fab571771b419a96d7cf3032de53cdc31 /drivers/net
parentdf98a4967002d0df88d92f89662261e3a7867cf7 (diff)
iwl3945: remove duplicated event logging code
In the process of improving uCode event logging capability, the new implementation was introduced without removing the existing implementation. The event log will be dumped to dmesg twice. Remove the old implementation to only log the event once upon sys assert or request by user. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 0db9b79a69a6..a63bd5ee53a7 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -1701,15 +1701,6 @@ void iwl3945_dump_nic_event_log(struct iwl_priv *priv, bool full_log)
1701 IWL_ERR(priv, "Start IWL Event Log Dump: display last %d count\n", 1701 IWL_ERR(priv, "Start IWL Event Log Dump: display last %d count\n",
1702 size); 1702 size);
1703 1703
1704 /* if uCode has wrapped back to top of log, start at the oldest entry,
1705 * i.e the next one that uCode would fill. */
1706 if (num_wraps)
1707 iwl3945_print_event_log(priv, next_entry,
1708 capacity - next_entry, mode);
1709
1710 /* (then/else) start at top of log */
1711 iwl3945_print_event_log(priv, 0, next_entry, mode);
1712
1713#ifdef CONFIG_IWLWIFI_DEBUG 1704#ifdef CONFIG_IWLWIFI_DEBUG
1714 if ((iwl_get_debug_level(priv) & IWL_DL_FW_ERRORS) || full_log) { 1705 if ((iwl_get_debug_level(priv) & IWL_DL_FW_ERRORS) || full_log) {
1715 /* if uCode has wrapped back to top of log, 1706 /* if uCode has wrapped back to top of log,