diff options
author | 2023-08-31 22:09:29 +0800 | |
---|---|---|
committer | 2023-09-05 05:50:36 -0400 | |
commit | d0b0822e32dbae80bbcb3cc86f34d28539d913df (patch) | |
tree | 2a5d1e67e89bf1a6293174c0a826c50219b3b89a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | scsi: qla2xxx: Use raw_smp_processor_id() instead of smp_processor_id() (diff) | |
download | wireguard-linux-d0b0822e32dbae80bbcb3cc86f34d28539d913df.tar.xz wireguard-linux-d0b0822e32dbae80bbcb3cc86f34d28539d913df.zip |
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: 1e98fb0f9208 ("scsi: qla2xxx: Setup debugfs entries for remote ports")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20230831140930.3166359-1-ruanjinjie@huawei.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions