Skip to content
Commit d0b0822e authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Martin K. Petersen
Browse files

scsi: qla2xxx: Fix NULL vs IS_ERR() bug for debugfs_create_dir()

Since both debugfs_create_dir() and debugfs_create_file() return ERR_PTR
and never NULL, use IS_ERR() instead of checking for NULL.

Fixes: 1e98fb0f

 ("scsi: qla2xxx: Setup debugfs entries for remote ports")
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230831140930.3166359-1-ruanjinjie@huawei.com
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 59f10a05
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment