diff mbox series

[3/5] block: remove allocation failure warnings in bio_integrity_prep

Message ID 20240626045950.189758-4-hch@lst.de (mailing list archive)
State New, archived
Headers show
Series [1/5] block: only zero non-PI metadata tuples in bio_integrity_prep | expand

Commit Message

Christoph Hellwig June 26, 2024, 4:59 a.m. UTC
Allocation failures already leave a stack trace, so don't spew another
warning.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 block/bio-integrity.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Kanchan Joshi June 27, 2024, 3:42 p.m. UTC | #1
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
diff mbox series

Patch

diff --git a/block/bio-integrity.c b/block/bio-integrity.c
index 2efab4b3957978..1017984552baf8 100644
--- a/block/bio-integrity.c
+++ b/block/bio-integrity.c
@@ -465,13 +465,11 @@  bool bio_integrity_prep(struct bio *bio)
 	len = bio_integrity_bytes(bi, bio_sectors(bio));
 	buf = kmalloc(len, gfp);
 	if (unlikely(buf == NULL)) {
-		printk(KERN_ERR "could not allocate integrity buffer\n");
 		goto err_end_io;
 	}
 
 	bip = bio_integrity_alloc(bio, GFP_NOIO, 1);
 	if (IS_ERR(bip)) {
-		printk(KERN_ERR "could not allocate data integrity bioset\n");
 		kfree(buf);
 		goto err_end_io;
 	}