summaryrefslogtreecommitdiff
path: root/drivers/scsi/elx/efct
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/elx/efct')
-rw-r--r--drivers/scsi/elx/efct/efct_xport.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/scsi/elx/efct/efct_xport.c b/drivers/scsi/elx/efct/efct_xport.c
index 78b6a47599c3..9495cedcc0b9 100644
--- a/drivers/scsi/elx/efct/efct_xport.c
+++ b/drivers/scsi/elx/efct/efct_xport.c
@@ -43,16 +43,13 @@ efct_xport_init_debugfs(struct efct *efct)
if (!efct_debugfs_root) {
efct_debugfs_root = debugfs_create_dir("efct", NULL);
atomic_set(&efct_debugfs_count, 0);
- if (!efct_debugfs_root) {
- efc_log_err(efct, "failed to create debugfs entry\n");
- goto debugfs_fail;
- }
}
/* Create a directory for sessions in root */
if (!efct->sess_debugfs_dir) {
- efct->sess_debugfs_dir = debugfs_create_dir("sessions", NULL);
- if (!efct->sess_debugfs_dir) {
+ efct->sess_debugfs_dir = debugfs_create_dir("sessions",
+ efct_debugfs_root);
+ if (IS_ERR(efct->sess_debugfs_dir)) {
efc_log_err(efct,
"failed to create debugfs entry for sessions\n");
goto debugfs_fail;