From 5643dd7db9867f7ba2f88237b0e49574ec6cbe72 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Tue, 26 Jul 2022 14:14:24 +0200 Subject: [PATCH] bio: remove now superfluous check --- kernel/mars_bio.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kernel/mars_bio.c b/kernel/mars_bio.c index 835f6726..84869f51 100644 --- a/kernel/mars_bio.c +++ b/kernel/mars_bio.c @@ -346,11 +346,7 @@ static int bio_ref_get(struct bio_output *output, struct mref_object *mref) if (unlikely(mref->ref_len <= 0)) { goto done; } - status = -ENOMEM; mref->ref_data = brick_block_alloc(mref->ref_pos, (mref_a->alloc_len = mref->ref_len)); - if (unlikely(!mref->ref_data)) { - goto done; - } mref_a->do_dealloc = true; }