scsi: qla4xxx: remvoe unnecessary condition check for mempool_destroy()
authorChengguang Xu <cgxu519@gmx.com>
Sun, 4 Nov 2018 13:57:50 +0000 (21:57 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 7 Nov 2018 02:20:18 +0000 (21:20 -0500)
commitb03f3c3e527a7da50f12ddb2021cb28ed99e46f7
treecb3d9472aeb551dbb766f3a11c4624209137ef6a
parent08cf8ab3c9e6f392f8d051fa0b574bc173d96a5d
scsi: qla4xxx: remvoe unnecessary condition check for mempool_destroy()

mempool_destroy() can handle NULL pointer correctly, so there is no
need to check NULL pointer before calling mempool_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