]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove unnecessary NULL checks in bioset_integrity_free()
authorTim Hansen <devtimhansen@gmail.com>
Thu, 5 Oct 2017 18:09:20 +0000 (14:09 -0400)
committerJens Axboe <axboe@kernel.dk>
Fri, 6 Oct 2017 19:03:12 +0000 (13:03 -0600)
commite22802c83dd72c6183e3e8b6ea6da41581c72e6e
treef4897492ababa6c43169489e3fc10985983efa87
parent49a151e2e283013228c99929d72a2525f9c56a65
block: remove unnecessary NULL checks in bioset_integrity_free()

mempool_destroy() already checks for a NULL value being passed in, this
eliminates duplicate checks.

This was caught by running make coccicheck M=block/ on linus' tree on
commit aa03518edbead62abdc90f1961851bf243b4c57c (current head as of this
patch).

Reviewed-by: Kyle Fortin <kyle.fortin@oracle.com>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Tim Hansen <devtimhansen@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio-integrity.c