From bd5c721f6bd099e2fbad4dbde5e72c0b6945dad9 Mon Sep 17 00:00:00 2001 From: Anna Karas Date: Thu, 9 Jul 2020 22:31:39 +0200 Subject: [PATCH] src/lib: Remove redundant code in imd.c Get rid of duplicated "if" statement in imdr_create_empty(). Signed-off-by: Anna Karas Change-Id: I80c074d09f222086092478f8fd3ac665235ebb31 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43339 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Paul Fagerburg --- src/lib/imd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lib/imd.c b/src/lib/imd.c index c87037d807..e19c03d0b7 100644 --- a/src/lib/imd.c +++ b/src/lib/imd.c @@ -143,9 +143,6 @@ static int imdr_create_empty(struct imdr *imdr, size_t root_size, assert(IS_POWER_OF_2(root_size)); assert(IS_POWER_OF_2(entry_align)); - if (!imdr->limit) - return -1; - /* * root_size needs to be large enough to accommodate root pointer and * root book keeping structure. The caller needs to ensure there's