[PATCH] scsi: qla2xxx: Remove redundant NULL check

2020-12-25 Thread Xu Wang
Fix warnings reported by coccicheck: ./drivers/scsi/qla2xxx/qla_os.c:4636:2-7: WARNING: NULL check before some freeing functions is not needed. ./drivers/scsi/qla2xxx/qla_os.c:4651:3-8: WARNING: NULL check before some freeing functions is not needed. Signed-off-by: Xu Wang --- drivers/scsi/qla

Re: [PATCH] scsi: qla2xxx: remove redundant null check on pointer sess

2019-02-13 Thread Dan Carpenter
On Wed, Feb 13, 2019 at 01:53:35PM +, Colin King wrote: > From: Colin Ian King > > The null check on pointer sess and the subsequent call is redundant > as sess is null on all the the paths that lead to the out_term2 label. > Hence the null check and the call can be removed. > > Detected by

[PATCH] scsi: qla2xxx: remove redundant null check on pointer sess

2019-02-13 Thread Colin King
From: Colin Ian King The null check on pointer sess and the subsequent call is redundant as sess is null on all the the paths that lead to the out_term2 label. Hence the null check and the call can be removed. Detected by CoverityScan, CID#1420663 ("Logically dead code") Signed-off-by: Colin Ia