The issue is detected with the help of Coccinelle. zhong jiang (2): scsi:ufs: Use PTR_ERR_OR_ZERO to replace the open code scsi:qla2xxx: Use PTR_ERR_OR_ZERO to replace the open code drivers/scsi/qla2xxx/tcm_qla2xxx.c | 6 ++---- drivers/scsi/ufs/ufs-hisi.c | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) -- 1.7.12.4