aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debugfs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-debugfs.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
index 61faf2dd7fbe..4aabb542fcbe 100644
--- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c
@@ -1059,10 +1059,8 @@ static ssize_t iwl_dbgfs_ucode_rx_stats_read(struct file *file,
1059 size_t count, loff_t *ppos) 1059 size_t count, loff_t *ppos)
1060{ 1060{
1061 struct iwl_priv *priv = file->private_data; 1061 struct iwl_priv *priv = file->private_data;
1062 if (priv->cfg->ops->lib->debugfs_ops.rx_stats_read) 1062 return priv->cfg->ops->lib->debugfs_ops.rx_stats_read(file,
1063 return priv->cfg->ops->lib->debugfs_ops.rx_stats_read(file, 1063 user_buf, count, ppos);
1064 user_buf, count, ppos);
1065 return 0;
1066} 1064}
1067 1065
1068static ssize_t iwl_dbgfs_ucode_tx_stats_read(struct file *file, 1066static ssize_t iwl_dbgfs_ucode_tx_stats_read(struct file *file,
@@ -1070,10 +1068,8 @@ static ssize_t iwl_dbgfs_ucode_tx_stats_read(struct file *file,
1070 size_t count, loff_t *ppos) 1068 size_t count, loff_t *ppos)
1071{ 1069{
1072 struct iwl_priv *priv = file->private_data; 1070 struct iwl_priv *priv = file->private_data;
1073 if (priv->cfg->ops->lib->debugfs_ops.tx_stats_read) 1071 return priv->cfg->ops->lib->debugfs_ops.tx_stats_read(file,
1074 return priv->cfg->ops->lib->debugfs_ops.tx_stats_read(file, 1072 user_buf, count, ppos);
1075 user_buf, count, ppos);
1076 return 0;
1077} 1073}
1078 1074
1079static ssize_t iwl_dbgfs_ucode_general_stats_read(struct file *file, 1075static ssize_t iwl_dbgfs_ucode_general_stats_read(struct file *file,
@@ -1081,10 +1077,8 @@ static ssize_t iwl_dbgfs_ucode_general_stats_read(struct file *file,
1081 size_t count, loff_t *ppos) 1077 size_t count, loff_t *ppos)
1082{ 1078{
1083 struct iwl_priv *priv = file->private_data; 1079 struct iwl_priv *priv = file->private_data;
1084 if (priv->cfg->ops->lib->debugfs_ops.general_stats_read) 1080 return priv->cfg->ops->lib->debugfs_ops.general_stats_read(file,
1085 return priv->cfg->ops->lib->debugfs_ops.general_stats_read(file, 1081 user_buf, count, ppos);
1086 user_buf, count, ppos);
1087 return 0;
1088} 1082}
1089 1083
1090static ssize_t iwl_dbgfs_sensitivity_read(struct file *file, 1084static ssize_t iwl_dbgfs_sensitivity_read(struct file *file,