lib/imd_cbmem: Eliminate unnecessary NULL check
&imd_cbmem is never NULL, so remove that path Change-Id: Ib9a9c88d6cd4842df447f046bc0abaa7ef5032c7 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37361 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
d14673f0b1
commit
5e4c663a5a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue