summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAnna Karas <aka@semihalf.com>2020-07-09 22:31:39 +0200
committerPaul Fagerburg <pfagerburg@chromium.org>2020-07-11 14:10:19 +0000
commitbd5c721f6bd099e2fbad4dbde5e72c0b6945dad9 (patch)
tree2aaa24e635271d324d7c36e5b19efa46162ccb46 /src/lib
parent81c9c275e66c8e5c8b3e68d0deb4589318af249f (diff)
src/lib: Remove redundant code in imd.c
Get rid of duplicated "if" statement in imdr_create_empty(). Signed-off-by: Anna Karas <aka@semihalf.com> Change-Id: I80c074d09f222086092478f8fd3ac665235ebb31 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43339 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/imd.c3
1 files changed, 0 insertions, 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