scsi: libfc: remove unnecessary condition check
authorChengguang Xu <cgxu519@gmx.com>
Mon, 27 Aug 2018 23:50:08 +0000 (07:50 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 30 Aug 2018 11:36:48 +0000 (07:36 -0400)
commitb6876a8407d042de369105e8c86299c83a4fdab1
tree8445bf7971b69d44027106b092fcad6592164093
parent26c724a690a1cd10575365da90b5b4040278a6c5
scsi: libfc: remove unnecessary condition check

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

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libfc/fc_fcp.c