diff options
author | Anna Karas <aka@semihalf.com> | 2020-07-09 22:31:39 +0200 |
---|---|---|
committer | Paul Fagerburg <pfagerburg@chromium.org> | 2020-07-11 14:10:19 +0000 |
commit | bd5c721f6bd099e2fbad4dbde5e72c0b6945dad9 (patch) | |
tree | 2aaa24e635271d324d7c36e5b19efa46162ccb46 | |
parent | 81c9c275e66c8e5c8b3e68d0deb4589318af249f (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>
-rw-r--r-- | src/lib/imd.c | 3 |
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 |