summaryrefslogtreecommitdiff
path: root/drivers/scsi/snic/snic_trc.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-18 18:16:25 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-21 20:46:45 +0200
commit1be4ec2456a7d110092ad8cc918eef75b878ec4e (patch)
tree72cfc05c2421298e062e70bab0763f7e66e15ad2 /drivers/scsi/snic/snic_trc.h
parent77b98d456d60e2923516903ab2ceb478ea22554c (diff)
scsi: snic: debugfs: remove local storage of debugfs files
There is no need to keep the dentry around for the debugfs trace files, as we can just look it up when we want to remove it later on. Simplify the structure by removing the dentries and relying on debugfs to find the dentry to remove when we want to. By doing this change, we remove the last in-kernel user that was storing the result of debugfs_create_bool(), so that api can be cleaned up. Cc: Karan Tilak Kumar <kartilak@cisco.com> Cc: Sesidhar Baddela <sebaddel@cisco.com> Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: <linux-scsi@vger.kernel.org> Link: https://lore.kernel.org/r/20210518161625.3696996-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/snic/snic_trc.h')
-rw-r--r--drivers/scsi/snic/snic_trc.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/snic/snic_trc.h b/drivers/scsi/snic/snic_trc.h
index 87dcc7457d15..ce305b4b8fa2 100644
--- a/drivers/scsi/snic/snic_trc.h
+++ b/drivers/scsi/snic/snic_trc.h
@@ -46,9 +46,6 @@ struct snic_trc {
u32 rd_idx;
u32 wr_idx;
bool enable; /* Control Variable for Tracing */
-
- struct dentry *trc_enable; /* debugfs file object */
- struct dentry *trc_file;
};
int snic_trc_init(void);