| .. | .. |
|---|
| 116 | 116 | |
|---|
| 117 | 117 | sprintf(wwn, "pn-%016llx", wwn_to_u64(fp->port_name)); |
|---|
| 118 | 118 | 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)) |
|---|
| 120 | 120 | return; |
|---|
| 121 | 121 | if (NVME_TARGET(vha->hw, fp)) |
|---|
| 122 | 122 | debugfs_create_file("dev_loss_tmo", 0600, fp->dfs_rport_dir, |
|---|
| .. | .. |
|---|
| 571 | 571 | if (IS_QLA27XX(ha) || IS_QLA83XX(ha) || IS_QLA28XX(ha)) { |
|---|
| 572 | 572 | ha->tgt.dfs_naqp = debugfs_create_file("naqp", |
|---|
| 573 | 573 | 0400, ha->dfs_dir, vha, &dfs_naqp_ops); |
|---|
| 574 | | - if (!ha->tgt.dfs_naqp) { |
|---|
| 574 | + if (IS_ERR(ha->tgt.dfs_naqp)) { |
|---|
| 575 | 575 | ql_log(ql_log_warn, vha, 0xd011, |
|---|
| 576 | 576 | "Unable to create debugFS naqp node.\n"); |
|---|
| 577 | 577 | goto out; |
|---|
| 578 | 578 | } |
|---|
| 579 | 579 | } |
|---|
| 580 | 580 | 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)) { |
|---|
| 582 | 582 | ql_log(ql_log_warn, vha, 0xd012, |
|---|
| 583 | 583 | "Unable to create debugFS rports node.\n"); |
|---|
| 584 | 584 | goto out; |
|---|