Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / iwlwifi / iwl-debugfs.c
index 61faf2dd7fbe95df7571919ff8b008f6dde68c32..4aabb542fcbea1a6bc1efad5797464f532ed21c8 100644 (file)
@@ -1059,10 +1059,8 @@ static ssize_t iwl_dbgfs_ucode_rx_stats_read(struct file *file,
                                        size_t count, loff_t *ppos)
 {
        struct iwl_priv *priv = file->private_data;
-       if (priv->cfg->ops->lib->debugfs_ops.rx_stats_read)
-               return priv->cfg->ops->lib->debugfs_ops.rx_stats_read(file,
-                                               user_buf, count, ppos);
-       return 0;
+       return priv->cfg->ops->lib->debugfs_ops.rx_stats_read(file,
+                       user_buf, count, ppos);
 }
 
 static 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,
                                        size_t count, loff_t *ppos)
 {
        struct iwl_priv *priv = file->private_data;
-       if (priv->cfg->ops->lib->debugfs_ops.tx_stats_read)
-               return priv->cfg->ops->lib->debugfs_ops.tx_stats_read(file,
-                                               user_buf, count, ppos);
-       return 0;
+       return priv->cfg->ops->lib->debugfs_ops.tx_stats_read(file,
+                       user_buf, count, ppos);
 }
 
 static 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,
                                        size_t count, loff_t *ppos)
 {
        struct iwl_priv *priv = file->private_data;
-       if (priv->cfg->ops->lib->debugfs_ops.general_stats_read)
-               return priv->cfg->ops->lib->debugfs_ops.general_stats_read(file,
-                                               user_buf, count, ppos);
-       return 0;
+       return priv->cfg->ops->lib->debugfs_ops.general_stats_read(file,
+                       user_buf, count, ppos);
 }
 
 static ssize_t iwl_dbgfs_sensitivity_read(struct file *file,