coreboot/src/lib
Naresh G Solanki b8a5736c07 lib/spd_bin: Check return code & remove dead code
Remove dead code to address CID 1366756 Control flow issues (DEADCODE)

Add return value check to address CID 1366755 Error handling issues
(CHECKED_RETURN)

Found-by: Coverity Scan #1366755
Found-by: Coverity Scan #1366756

Change-Id: Id02f6915ec7c6a4abfce20332c55833683e52d77
Signed-off-by: Naresh G Solanki <naresh.solanki@intel.com>
Reviewed-on: https://review.coreboot.org/17838
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-12-14 18:58:03 +01:00
..
gnat Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
b64_decode.c
boot_device.c lib/boot_device: add RW boot device construct 2016-08-19 03:07:05 +02:00
bootblock.c lib: Add asmlinkage attribute to bootblock_main_with_timestamp 2016-06-09 17:15:35 +02:00
bootmem.c lib/bootmem: allow architecture specific bootmem ranges 2016-04-21 20:46:45 +02:00
bootmode.c bootmode: Get rid of CONFIG_BOOTMODE_STRAPS 2016-07-28 00:36:22 +02:00
cbfs.c cbfs: Add API to locate a file from specific region 2016-12-10 03:16:55 +01:00
cbmem_common.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
cbmem_console.c arch/x86,lib: make cbmem console work in postcar stage 2016-09-19 17:02:17 +02:00
cbmem_stage_cache.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
compute_ip_checksum.c lib/compute_ip_checksum: mark data buffer as const 2016-12-08 16:09:59 +01:00
coreboot_table.c drivers/spi: ensure SPI flash is boot device for coreboot tables 2016-08-19 18:14:20 +02:00
debug.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
delay.c
edid.c edid: Fix a function signature 2016-09-08 23:19:06 +02:00
ext_stage_cache.c soc/intel/apollolake: Implement stage cache to improve resume time 2016-10-07 18:18:14 +02:00
fallback_boot.c pc80: Move set_boot_successful() 2016-12-13 19:15:22 +01:00
fmap.c lib/fmap: provide RW region device support 2016-08-19 18:17:04 +02:00
gcc.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
gcov-glue.c lib/gcov-glue.c: Remove trailing number from COVERAGE_MAGIC macro 2016-02-02 01:39:28 +01:00
gcov-io.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
gcov-io.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
gcov-iov.h
generic_dump_spd.c
generic_sdram.c
gpio.c lib/gpio: add pullup & pulldown gpio_base2_value() variants 2016-07-07 20:44:36 +02:00
halt.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
hardwaremain.c bootstate: add arch specific hook at coreboot exit 2016-12-08 21:38:48 +01:00
hexdump.c lib/hexdump: Refactor to skip lines with all ones as well 2016-01-22 14:10:28 +01:00
hexstrtobin.c hexstrtobin: Add a library function to decode ASCII hex into binary 2016-05-21 05:58:51 +02:00
hw-time-timer.adb Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
imd.c Correct some common spelling mistakes 2016-01-07 22:57:02 +01:00
imd_cbmem.c arch/x86,lib: make cbmem console work in postcar stage 2016-09-19 17:02:17 +02:00
jpeg.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
jpeg.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
libgcc.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
libgcov.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
lzma.c lib: remove ulzma() 2016-07-01 23:55:16 +02:00
lzmadecode.c lzma: Port size-checking ulzman() version to coreboot 2016-02-12 22:00:55 +01:00
lzmadecode.h
Makefile.inc lib: add region file support 2016-12-08 16:10:28 +01:00
malloc.c
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c lib/memrange: avoid shadow object declarations 2016-02-26 02:14:56 +01:00
memset.c
mocked_tlcl.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
nhlt.c lib/nhlt: add support for setting the oem_revision 2016-12-01 08:17:42 +01:00
primitive_memtest.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
prog_loaders.c romstage_handoff: add helper to determine resume status 2016-12-01 08:16:27 +01:00
prog_ops.c lib/prog_loading: introduce prog_segment_loaded() 2016-04-02 03:56:37 +02:00
program.ld lib/program.ld: add .sdata sections 2016-10-31 19:33:44 +01:00
ramtest.c quick_ram_check: Remove reference to RAMBASE 2016-11-08 19:16:41 +01:00
reg_script.c lib/reg_script: Fix braces 2016-05-05 19:41:29 +02:00
region_file.c lib: add region file support 2016-12-08 16:10:28 +01:00
rmodule.c lib/prog_loading: introduce prog_segment_loaded() 2016-04-02 03:56:37 +02:00
rmodule.ld
romstage_handoff.c lib: put romstage_handoff implementation in own compilation unit 2016-12-01 08:16:47 +01:00
romstage_stack.c intel post-car: Increase stacktop alignment 2016-11-18 20:59:12 +01:00
rtc.c lib: Add real-time-clock functions 2016-06-24 20:22:05 +02:00
selfboot.c arm64: Use 'payload' format for ATF instead of 'stage' 2016-10-06 21:49:52 +02:00
spd_bin.c lib/spd_bin: Check return code & remove dead code 2016-12-14 18:58:03 +01:00
stack.c lib/stack: Add stack overrun detection 2015-10-24 05:57:33 +02:00
thread.c src/lib: Capitalize ROM, RAM, NVRAM and CPU 2016-07-31 19:30:54 +02:00
timer.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
timer_queue.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
timestamp.c memlayout: Ensure TIMESTAMP() region is big enough to avoid BUG() 2016-08-23 21:33:29 +02:00
tlcl.c lib/tlcl: Ensure tlcl library is initialized only once 2016-11-11 22:15:57 +01:00
tlcl_internal.h
tlcl_structures.h
tpm2_marshaling.c tpm2: Fix tlcl and marshaling code for CAR usage 2016-09-06 22:51:13 +02:00
tpm2_marshaling.h tpm2: avoid comparison between signed and unsigned ints 2016-07-13 23:58:32 +02:00
tpm2_tlcl.c vboot: TPM2 - report attempts to re-create NVRAM spaces 2016-11-16 02:15:58 +01:00
tpm2_tlcl_structures.h tpm2: implement and use pcr_extend command 2016-07-14 00:00:30 +02:00
tpm_error_messages.h src/lib: Fix checkpatch warnings 2016-09-07 22:28:00 +02:00
trace.c src/lib: Fix checkpatch warnings 2016-09-07 22:28:00 +02:00
version.c lib/version: Correct whitespace alignment 2016-07-15 00:10:50 +02:00
wrdd.c lib: Implement framework for retrieving WiFi regulatory domain 2016-03-08 18:41:33 +01:00