coreboot-kgpe-d16/src/drivers
Paul Menzel 6d412d738c drivers/mrc_cache: Avoid unused variable assignment
Fix the scan-build warning below:

        CC         romstage/drivers/mrc_cache/mrc_cache.o
    src/drivers/mrc_cache/mrc_cache.c:450:26: warning: Value stored to 'flash' during its initialization is never read
            const struct spi_flash *flash = boot_device_spi_flash();
                                    ^~~~~   ~~~~~~~~~~~~~~~~~~~~~~~
    1 warning generated.

The function can return early before the value is read. Fix this, by
getting rid of the variable, as the value is only read once.

Change-Id: I3c94b123f4994eed9d7568b63971fd5b1d94bc09
Found-by: scan-build (clang-tools-9 1:9.0.1-12)
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42798
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
2020-07-26 21:26:04 +00:00
..
amd src: Remove unused 'include <cbmem.h>' 2020-07-26 20:59:44 +00:00
ams treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
analogix/anx7625 src: Remove unused '#include <timer.h>' 2020-06-02 07:39:05 +00:00
asmedia src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
aspeed aspeed/ast2050: Fix when resources are added 2020-05-14 21:25:59 +00:00
broadcom src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
crb treewide: Convert more license headers to SPDX style 2020-05-11 19:37:19 +00:00
elog ACPI,drivers/: Do not guard <acpi/acpi.h> 2020-06-18 12:56:01 +00:00
emulation/qemu drivers/emulation/qemu/bochs: Rewrite driver 2020-05-20 09:50:29 +00:00
generic drivers/generic/generic: Drop dead code 2020-07-09 23:54:30 +00:00
gfx/generic src: Remove unused '#include <stdint.h>' 2020-05-13 08:48:17 +00:00
gic treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c src: Remove whitespace between 'sizeof' and '(' 2020-07-26 21:18:16 +00:00
intel src: Change BOOL CONFIG_ to CONFIG() in comments & strings 2020-07-26 21:20:30 +00:00
ipmi drivers/ipmi: Increase BMC waiting message level from DEBUG to INFO 2020-07-06 06:30:14 +00:00
lenovo src: Remove unused 'include <types.h>' 2020-07-14 16:10:17 +00:00
maxim src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
mrc_cache drivers/mrc_cache: Avoid unused variable assignment 2020-07-26 21:26:04 +00:00
net drivers: Use SPDX identifiers 2020-05-25 22:19:21 +00:00
ocp/dmi drivers/ocp/dmi: Add OCP_DMI driver for populating SMBIOS from IPMI FRU data 2020-07-04 11:31:16 +00:00
parade src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
pc80 src: Change BOOL CONFIG_ to CONFIG() in comments & strings 2020-07-26 21:20:30 +00:00
ricoh/rce822 treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
secunet/dmi treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
siemens/nc_fpga src: Remove leading blank lines from SPDX header 2020-05-18 07:00:27 +00:00
sil/3114 treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smmstore src: Remove unused include <cpu/x86/smm.h> 2020-07-26 18:45:00 +00:00
soundwire drivers/soundwire/alc5682: Support Realtek ALC5682 SoundWire device 2020-05-22 01:48:59 +00:00
spi src: Update bare access to BOOL CONFIG_ vals to CONFIG() 2020-07-26 21:21:03 +00:00
ti drivers/ti/tps65090: Drop dead code 2020-07-09 23:51:41 +00:00
tpm src: Remove unused 'include <types.h>' 2020-07-14 16:10:17 +00:00
uart src: Remove extra lines in license header 2020-07-26 20:57:18 +00:00
usb src: Remove whitespace between 'sizeof' and '(' 2020-07-26 21:18:16 +00:00
vpd drivers/vpd: add VPD region VPD_RW_THEN_RO 2020-06-02 07:18:40 +00:00
wifi Kconfig: Escape variable to accommodate new Kconfig versions 2020-06-19 15:29:04 +00:00