summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/imd_cbmem.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/imd_cbmem.c b/src/lib/imd_cbmem.c
index d7f7d20f25..4172fa4911 100644
--- a/src/lib/imd_cbmem.c
+++ b/src/lib/imd_cbmem.c
@@ -69,16 +69,7 @@ static inline const struct imd_entry *cbmem_to_imd(const struct cbmem_entry *e)
*/
static struct imd *imd_init_backing(struct imd *backing)
{
- struct imd *imd;
-
- imd = &imd_cbmem;
-
- if (imd != NULL)
- return imd;
-
- imd = backing;
-
- return imd;
+ return &imd_cbmem;
}
static struct imd *imd_init_backing_with_recover(struct imd *backing)