scsi: qla4xxx: remove unnecessary condition check for dma_pool_destroy()
authorChengguang Xu <cgxu519@gmx.com>
Sun, 4 Nov 2018 13:57:49 +0000 (21:57 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 7 Nov 2018 02:19:37 +0000 (21:19 -0500)
commit08cf8ab3c9e6f392f8d051fa0b574bc173d96a5d
treea9ca4250cf272bee174491615c1b14cfc70772c7
parented5b3994c6356179a605fb3d9e3519c3683d57f1
scsi: qla4xxx: remove unnecessary condition check for dma_pool_destroy()

dma_pool_destroy() can handle NULL pointer correctly, so there is no
need to check NULL pointer before calling dma_pool_destroy().

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Acked-by: Manish Rangankar <Manish.Rangankar@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla4xxx/ql4_os.c