Skip to contentSkip to conversation

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

PATCH New Gu Zheng 1 participant 1 message Jul 7, 2014 Block layer

lore
Share & tools
lore

Gu Zheng

author
#0 lore raw

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

bip_slab is created with SLAB_PANIC, so the fail handle is needless, remove it.

---
 block/bio-integrity.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
block/bio-integrity.c +0 -2
index 9e24106..56754c4 100644
@@ -652,6 +652,4 @@ void __init bio_integrity_init(void)
 				     sizeof(struct bio_integrity_payload) +
 				     sizeof(struct bio_vec) * BIP_INLINE_VECS,
 				     0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
-	if (!bip_slab)
-		panic("Failed to create slab\n");
 }
Signature · 1 line
1.7.7