coreboot/src/drivers
Richard Spiegel 22ba205f70 drivers/spi/spi_flash.c: Avoid static scan false positive
Static scan-build indicates a possible invalid return from function
spi_flash_cmd_erase(). The root cause is because the scan believes it's
possible for offset to be above the end address in the first pass, thus
not setting a value for variable ret. Assign initial value of -1 to
variable ret to make checker happy.

BUG=b:112253891
TEST=build grunt

Change-Id: If548728ff90b755c69143eabff6aeff01e8fd483
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/c/31473
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
2019-02-20 10:38:22 +00:00
..
amd/agesa drivers/amd/agesa/cache_as_ram.S: Fix coding style 2018-12-28 13:10:39 +00:00
ams src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
asmedia drivers/asmedia: Add ASPM blacklist 2018-04-27 09:17:52 +00:00
aspeed drivers/aspeed: Fix AST2400 POST failure without BMC FW or VBIOS 2019-01-03 20:02:15 +00:00
dec/21143
elog src: Fix the warning "type 'hex' are always defined" 2019-01-27 11:14:26 +00:00
emulation/qemu src: Remove unneeded whitespace 2018-10-23 15:52:09 +00:00
generic drivers/gpio_keys: Remove redundant is_wakeup_source flag 2019-02-08 10:59:33 +00:00
gic src: Remove unneeded include "{arch,cpu}/cpu.h" 2018-11-12 09:22:18 +00:00
i2c drivers/i2c/max98373: Set default bus speed as I2C_SPEED_FAST 2019-02-15 06:38:02 +00:00
intel drivers/intel/wifi: Add support for Harrison Peak (HrP) 9560 module 2019-02-20 04:24:57 +00:00
ipmi
lenovo src/drivers: Remove needless '&' on function pointers 2019-01-23 14:43:49 +00:00
maxim src/drivers: Fix typo 2018-08-10 21:25:30 +00:00
mrc_cache drivers/spi: Add controller protection type 2019-01-21 13:25:31 +00:00
net src/drivers: Remove needless '&' on function pointers 2019-01-23 14:43:49 +00:00
parade src: Add missing include <stdint.h> 2018-11-01 11:25:07 +00:00
pc80 drivers/keyboard: Fix spelling of *interface* 2019-02-08 10:57:46 +00:00
ricoh/rce822 src/drivers: Remove needless '&' on function pointers 2019-01-23 14:43:49 +00:00
siemens/nc_fpga src: Remove unneeded include <console/console.h> 2018-11-16 09:50:29 +00:00
sil/3114 {device,drivers}: Remove useless include <device/pci_ids.h> 2018-12-19 05:22:44 +00:00
smmstore Makefile.inc: Create a default SMMSTORE region 2019-02-06 18:15:59 +00:00
spi drivers/spi/spi_flash.c: Avoid static scan false positive 2019-02-20 10:38:22 +00:00
ti src/drivers: Fix typo 2018-08-10 21:25:30 +00:00
tpm security/tpm: Fix TPM 1.2 state machine issues 2018-08-21 15:45:15 +00:00
uart buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
usb usbdebug: Use fixed size field 2019-02-02 23:48:53 +00:00
vpd src/drivers/vpd: Remove unused VPD_DEBUG 2018-11-16 09:55:09 +00:00
xgi {device,drivers}: Remove useless include <device/pci_ids.h> 2018-12-19 05:22:44 +00:00
xpowers/axp209