Re: [PATCH] drivers/scsi: fix warning PTR_ERR_OR_ZERO can be used

2019-05-26 Thread Bart Van Assche
On 5/25/19 2:42 AM, Hariprasad Kelam wrote: > fix below warnig reported by coccicheck > > /drivers/scsi/ufs/ufs-hisi.c:459:1-3: WARNING: PTR_ERR_OR_ZERO can be > used > ./drivers/scsi/qla2xxx/tcm_qla2xxx.c:1477:1-3: WARNING: PTR_ERR_OR_ZERO > can be used > > Signed-off-by: Hariprasad Kelam > ---

[PATCH] drivers/scsi: fix warning PTR_ERR_OR_ZERO can be used

2019-05-25 Thread Hariprasad Kelam
fix below warnig reported by coccicheck /drivers/scsi/ufs/ufs-hisi.c:459:1-3: WARNING: PTR_ERR_OR_ZERO can be used ./drivers/scsi/qla2xxx/tcm_qla2xxx.c:1477:1-3: WARNING: PTR_ERR_OR_ZERO can be used Signed-off-by: Hariprasad Kelam --- drivers/scsi/qla2xxx/tcm_qla2xxx.c | 4 +--- drivers/scsi/uf