From f67f3a6626e8c74ebf742246d373c80bb2d1be2c Mon Sep 17 00:00:00 2001 From: Anna Karas Date: Tue, 11 Aug 2020 16:42:16 +0200 Subject: 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 Change-Id: Ibee1664ee45b29d36e2eaaa7dff4c7cc1942010b Reviewed-on: https://review.coreboot.org/c/coreboot/+/44663 Tested-by: build bot (Jenkins) Reviewed-by: Paul Fagerburg --- src/lib/imd.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/lib') 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; -- cgit v1.2.3