hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/scsi/qla2xxx/qla_dfs.c
....@@ -116,7 +116,7 @@
116116
117117 sprintf(wwn, "pn-%016llx", wwn_to_u64(fp->port_name));
118118 fp->dfs_rport_dir = debugfs_create_dir(wwn, vha->dfs_rport_root);
119
- if (!fp->dfs_rport_dir)
119
+ if (IS_ERR(fp->dfs_rport_dir))
120120 return;
121121 if (NVME_TARGET(vha->hw, fp))
122122 debugfs_create_file("dev_loss_tmo", 0600, fp->dfs_rport_dir,
....@@ -571,14 +571,14 @@
571571 if (IS_QLA27XX(ha) || IS_QLA83XX(ha) || IS_QLA28XX(ha)) {
572572 ha->tgt.dfs_naqp = debugfs_create_file("naqp",
573573 0400, ha->dfs_dir, vha, &dfs_naqp_ops);
574
- if (!ha->tgt.dfs_naqp) {
574
+ if (IS_ERR(ha->tgt.dfs_naqp)) {
575575 ql_log(ql_log_warn, vha, 0xd011,
576576 "Unable to create debugFS naqp node.\n");
577577 goto out;
578578 }
579579 }
580580 vha->dfs_rport_root = debugfs_create_dir("rports", ha->dfs_dir);
581
- if (!vha->dfs_rport_root) {
581
+ if (IS_ERR(vha->dfs_rport_root)) {
582582 ql_log(ql_log_warn, vha, 0xd012,
583583 "Unable to create debugFS rports node.\n");
584584 goto out;