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>
This commit is contained in:
parent
81c9c275e6
commit
bd5c721f6b
|
@ -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(root_size));
|
||||||
assert(IS_POWER_OF_2(entry_align));
|
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_size needs to be large enough to accommodate root pointer and
|
||||||
* root book keeping structure. The caller needs to ensure there's
|
* root book keeping structure. The caller needs to ensure there's
|
||||||
|
|
Loading…
Reference in New Issue