Commit b65c7491cb865577e83e6b7fae2aa2f4ea457c38

Authored by Gu Zheng
Committed by Jens Axboe
1 parent 7b2b10e0e2

bio-integrity: remove the needless fail handle of bip_slab creating

bip_slab is created with SLAB_PANIC, so the fail handler is unneeded.

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <axboe@fb.com>

Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff

block/bio-integrity.c
... ... @@ -513,7 +513,5 @@
513 513 sizeof(struct bio_integrity_payload) +
514 514 sizeof(struct bio_vec) * BIP_INLINE_VECS,
515 515 0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
516   - if (!bip_slab)
517   - panic("Failed to create slab\n");
518 516 }