diff options
author | Anna Karas <aka@semihalf.com> | 2020-08-11 16:42:16 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-08-26 07:32:11 +0000 |
commit | f67f3a6626e8c74ebf742246d373c80bb2d1be2c (patch) | |
tree | 687ed732123d7e8489ed03b3e7aad69b6785d4e2 /src | |
parent | b44b68bd1cfd92256df53ac525ade72e4df7b8fd (diff) |
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>
Diffstat (limited to 'src')
-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 46e985a81c..d59c92b3cb 100644 --- a/src/lib/imd.c +++ b/src/lib/imd.c @@ -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; |