mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 77ede3a014 (current head as of this
patch).
Reviewed-by: Kyle Fortin <[email protected]>
Acked-by: Martin K. Petersen <[email protected]>
Signed-off-by: Tim Hansen <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
775d3a35dc
commit
4b14a5c5d5
1 changed files with 2 additions and 5 deletions
|
|
@ -485,11 +485,8 @@ EXPORT_SYMBOL(bioset_integrity_create);
|
|||
|
||||
void bioset_integrity_free(struct bio_set *bs)
|
||||
{
|
||||
if (bs->bio_integrity_pool)
|
||||
mempool_destroy(bs->bio_integrity_pool);
|
||||
|
||||
if (bs->bvec_integrity_pool)
|
||||
mempool_destroy(bs->bvec_integrity_pool);
|
||||
mempool_destroy(bs->bio_integrity_pool);
|
||||
mempool_destroy(bs->bvec_integrity_pool);
|
||||
}
|
||||
EXPORT_SYMBOL(bioset_integrity_free);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue