OSDN Git Service

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)
commit4b14a5c5d57f4fd6929db3427ba4d7c3775b4680
treef4897492ababa6c43169489e3fc10985983efa87
parent775d3a35dc3e13de55ec0e061c59e36faa7dd7f0
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 77ede3a014a32746002f7889211f0cecf4803163 (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