drivers/elog: Remove NULL check for array created in code
Checking to see if a the location of a static variable is NULL isn't
super useful. If the check ever fails, there are much larger issues.
Found-by: Coverity Scan #1452607
Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: I6d3e012542287511f61807075c998efd6d10441e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78614
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c
index 687e68b..ecee145 100644
--- a/src/drivers/elog/elog.c
+++ b/src/drivers/elog/elog.c
@@ -761,10 +761,6 @@
elog_size = region_device_sz(&elog_state.nv_dev);
mirror_buffer = elog_mirror_buf;
- if (!mirror_buffer) {
- printk(BIOS_ERR, "ELOG: Unable to allocate backing store\n");
- return -1;
- }
rdev_chain_mem_rw(&elog_state.mirror_dev, mirror_buffer, elog_size);
/*