diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-06-18 11:03:18 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-06-18 11:03:18 -0400 |
commit | c68744fb935400964f7af4835017cad5014c8c88 (patch) | |
tree | 758100691485acbbb90d18f946a6fae9e6040e39 /drivers/net/wireless/iwlwifi/iwl-debugfs.c | |
parent | a8e827495a3e4d3a096e91b79e644e0665937927 (diff) |
iwlagn: Remove un-necessary indirect call
After driver split, no need to make indirect call to txfifo flush function
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 5f335c7815b5..6f9ebae8ca06 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -2493,7 +2493,7 @@ static ssize_t iwl_dbgfs_txfifo_flush_write(struct file *file, | |||
2493 | if (iwl_is_rfkill(priv)) | 2493 | if (iwl_is_rfkill(priv)) |
2494 | return -EFAULT; | 2494 | return -EFAULT; |
2495 | 2495 | ||
2496 | priv->cfg->ops->lib->dev_txfifo_flush(priv, IWL_DROP_ALL); | 2496 | iwlagn_dev_txfifo_flush(priv, IWL_DROP_ALL); |
2497 | 2497 | ||
2498 | return count; | 2498 | return count; |
2499 | } | 2499 | } |
@@ -2693,8 +2693,7 @@ int iwl_dbgfs_register(struct iwl_priv *priv, const char *name) | |||
2693 | DEBUGFS_ADD_FILE(ucode_rx_stats, dir_debug, S_IRUSR); | 2693 | DEBUGFS_ADD_FILE(ucode_rx_stats, dir_debug, S_IRUSR); |
2694 | DEBUGFS_ADD_FILE(ucode_tx_stats, dir_debug, S_IRUSR); | 2694 | DEBUGFS_ADD_FILE(ucode_tx_stats, dir_debug, S_IRUSR); |
2695 | DEBUGFS_ADD_FILE(ucode_general_stats, dir_debug, S_IRUSR); | 2695 | DEBUGFS_ADD_FILE(ucode_general_stats, dir_debug, S_IRUSR); |
2696 | if (priv->cfg->ops->lib->dev_txfifo_flush) | 2696 | DEBUGFS_ADD_FILE(txfifo_flush, dir_debug, S_IWUSR); |
2697 | DEBUGFS_ADD_FILE(txfifo_flush, dir_debug, S_IWUSR); | ||
2698 | DEBUGFS_ADD_FILE(protection_mode, dir_debug, S_IWUSR | S_IRUSR); | 2697 | DEBUGFS_ADD_FILE(protection_mode, dir_debug, S_IWUSR | S_IRUSR); |
2699 | 2698 | ||
2700 | DEBUGFS_ADD_FILE(sensitivity, dir_debug, S_IRUSR); | 2699 | DEBUGFS_ADD_FILE(sensitivity, dir_debug, S_IRUSR); |