lib/imd: Remove redundant code in imd.c

Get rid of the second check whether r is NULL (this is already done by imdr_has_entry()).

Signed-off-by: Anna Karas <aka@semihalf.com>
Change-Id: Ibee1664ee45b29d36e2eaaa7dff4c7cc1942010b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44663
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
This commit is contained in:
Anna Karas 2020-08-11 16:42:16 +02:00 committed by Patrick Georgi
parent b44b68bd1c
commit f67f3a6626
1 changed files with 0 additions and 3 deletions

View File

@ -625,9 +625,6 @@ int imd_entry_remove(const struct imd *imd, const struct imd_entry *entry)
r = imdr_root(imdr);
if (r == NULL)
return -1;
if (root_is_locked(r))
return -1;