]> git.baikalelectronics.ru Git - kernel.git/commit
lpfc: Delete unnecessary checks before the function call "mempool_destroy"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 16 Dec 2015 23:12:06 +0000 (18:12 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 22 Dec 2015 03:06:36 +0000 (22:06 -0500)
commit257b43205f96c9370d29d113b5ce20c28ec8d329
tree3c6e6b0eb3c5f064b0b791f750303f247560c3c6
parent8b1542cea82894945895fea5862a05a636bb6ac8
lpfc: Delete unnecessary checks before the function call "mempool_destroy"

The mempool_destroy() function tests whether its argument is NULL
and then returns immediately. Thus the test around the calls is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: James Smart <james.smart@avagotech.com>
Reviewed-by: Hannes Reinicke <hare@suse.de>
Reviewed-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_mem.c