diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-07-21 13:42:29 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-20 04:21:57 +0200 |
commit | a967783300bf2ba55a29255c0a591a554c651993 (patch) | |
tree | 1a17f82041d7d9c6813b7f1bc6adb8c5e9af0df8 /lib/ubsan.c | |
parent | scsi: ufs-qcom: Make structure ufs_hba_qcom_vops constant (diff) | |
download | linux-a967783300bf2ba55a29255c0a591a554c651993.tar.xz linux-a967783300bf2ba55a29255c0a591a554c651993.zip |
scsi: lpfc: remove NULL check before some freeing functions
As dma_pool_destroy and mempool_destroy functions has NULL check. We may
not need NULL check before calling them.
Fix below warnings reported by coccicheck
./drivers/scsi/lpfc/lpfc_mem.c:252:2-18: WARNING: NULL check before some
freeing functions is not needed.
./drivers/scsi/lpfc/lpfc_mem.c:255:2-18: WARNING: NULL check before some
freeing functions is not needed.
./drivers/scsi/lpfc/lpfc_mem.c:258:2-18: WARNING: NULL check before some
freeing functions is not needed.
./drivers/scsi/lpfc/lpfc_mem.c:261:2-18: WARNING: NULL check before some
freeing functions is not needed.
./drivers/scsi/lpfc/lpfc_mem.c:265:2-18: WARNING: NULL check before some
freeing functions is not needed.
./drivers/scsi/lpfc/lpfc_mem.c:269:2-17: WARNING: NULL check before some
freeing functions is not needed.
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'lib/ubsan.c')
0 files changed, 0 insertions, 0 deletions