All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bio-integrity: remove the needless fail handle of bip_slab creating
@ 2014-07-07 10:06 Gu Zheng
  0 siblings, 0 replies; only message in thread
From: Gu Zheng @ 2014-07-07 10:06 UTC (permalink / raw)
  To: Jens; +Cc: linux-kernel, Kent, Andrew Morton

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

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
---
 block/bio-integrity.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/block/bio-integrity.c b/block/bio-integrity.c
index 9e24106..56754c4 100644
--- a/block/bio-integrity.c
+++ b/block/bio-integrity.c
@@ -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");
 }
-- 
1.7.7


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-07 10:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-07 10:06 [PATCH] bio-integrity: remove the needless fail handle of bip_slab creating Gu Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.