Commit 18c05fa
scsi: qla2xxx: Remove redundant NULL check
Fix below warnings reported by coccicheck:
./drivers/scsi/qla2xxx/qla_init.c:3371:2-7: WARNING: NULL check before
some freeing functions is not needed.
./drivers/scsi/qla2xxx/qla_init.c:7855:5-10: WARNING: NULL check before
some freeing functions is not needed.
./drivers/scsi/qla2xxx/qla_init.c:7916:2-7: WARNING: NULL check before
some freeing functions is not needed.
./drivers/scsi/qla2xxx/qla_init.c:8113:4-18: WARNING: NULL check before
some freeing functions is not needed.
./drivers/scsi/qla2xxx/qla_init.c:8174:2-7: WARNING: NULL check before
some freeing functions is not needed.
Link: https://lore.kernel.org/r/1611306174-92627-1-git-send-email-abaci-bugfix@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Yang Li <abaci-bugfix@linux.alibaba.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 12e3ef8 commit 18c05fa
1 file changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3375 | 3375 | | |
3376 | 3376 | | |
3377 | 3377 | | |
3378 | | - | |
3379 | | - | |
| 3378 | + | |
3380 | 3379 | | |
3381 | 3380 | | |
3382 | 3381 | | |
| |||
7876 | 7875 | | |
7877 | 7876 | | |
7878 | 7877 | | |
7879 | | - | |
7880 | | - | |
| 7878 | + | |
7881 | 7879 | | |
7882 | 7880 | | |
7883 | 7881 | | |
| |||
7937 | 7935 | | |
7938 | 7936 | | |
7939 | 7937 | | |
7940 | | - | |
7941 | | - | |
| 7938 | + | |
7942 | 7939 | | |
7943 | 7940 | | |
7944 | 7941 | | |
| |||
8134 | 8131 | | |
8135 | 8132 | | |
8136 | 8133 | | |
8137 | | - | |
8138 | | - | |
| 8134 | + | |
8139 | 8135 | | |
8140 | 8136 | | |
8141 | 8137 | | |
| |||
8195 | 8191 | | |
8196 | 8192 | | |
8197 | 8193 | | |
8198 | | - | |
8199 | | - | |
| 8194 | + | |
8200 | 8195 | | |
8201 | 8196 | | |
8202 | 8197 | | |
| |||
0 commit comments