scsi: zfcp: remove unnecessary null pointer check before mempool_destroy
authorzhong jiang <zhongjiang@huawei.com>
Thu, 8 Nov 2018 14:44:37 +0000 (15:44 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 15 Nov 2018 20:01:17 +0000 (15:01 -0500)
commit6be552276e3cc0a04d734dc93cb837e64b6d9e33
tree748530d068ccd172e179e5de614c9a54047d6e9b
parent200858bbb64294882606c8a7332c4994555ee65d
scsi: zfcp: remove unnecessary null pointer check before mempool_destroy

mempool_destroy has taken null pointer check into account. so remove the
redundant check.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Acked-by: Benjamin Block <bblock@linux.ibm.com>
[maier@linux.ibm.com: depends on v4.3 4e3ca3e033d1 ("mm/mempool: allow NULL `pool' pointer in mempool_destroy()")]
Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/s390/scsi/zfcp_aux.c