coreboot/src
Nico Huber d29c784504 UPSTREAM: nb/intel/x4x: Fix uninitialized variable issue
A left-over from 5e3cb72a71 (nb/x4x: Do not enable IGD when not
supported). Should fix coverity issue 1375009. Remove a redundant
line that uses the variable `gfxsize` out of its scope and move the
variable declaration. Make sure the variable is always initialized,
drop unneeded error-handling for `get_option()` and sanitize the
read value instead.

BUG=none
BRANCH=none
TEST=none

Change-Id: If91dd643c754fd049952065dba56bab731b7f449
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: cfd433b96d
Original-Change-Id: Iee2beda30d8c74df0f412622c3ff3357819e386b
Original-Signed-off-by: Nico Huber <nico.huber@secunet.com>
Original-Reviewed-on: https://review.coreboot.org/19680
Original-Reviewed-by: Philippe Mathieu-Daud <philippe.mathieu.daude@gmail.com>
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: https://chromium-review.googlesource.com/506219
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
2017-05-15 08:17:52 -07:00
..
acpi UPSTREAM: src/acpi: Capitalize ACPI and SATA 2016-08-04 23:37:57 -07:00
arch UPSTREAM: commonlib: Move drivers/storage into commonlib/storage 2017-05-15 08:17:50 -07:00
commonlib UPSTREAM: commonlib: Move drivers/storage into commonlib/storage 2017-05-15 08:17:50 -07:00
console UPSTREAM: console: rework log level to not be reliant on ROMSTAGE_CONST 2017-04-26 13:36:55 -07:00
cpu UPSTREAM: nb/amd/amdk8: Link reset_test.c 2017-04-28 22:25:37 -07:00
device UPSTREAM: lib/edid.c: Allow use of when not NGI 2017-05-07 07:41:12 -07:00
drivers UPSTREAM: commonlib: Move drivers/storage into commonlib/storage 2017-05-15 08:17:50 -07:00
ec UPSTREAM: mb/lenovo/x201: Add support for ThinkLight 2017-05-15 08:17:44 -07:00
include UPSTREAM: commonlib: Move drivers/storage into commonlib/storage 2017-05-15 08:17:50 -07:00
lib UPSTREAM: lib/edid: Save the display ASCII string 2017-05-07 07:41:13 -07:00
mainboard UPSTREAM: mb/gigabyte/ga-g41m-es2l: Don't disable PATA 2017-05-15 08:17:51 -07:00
northbridge UPSTREAM: nb/intel/x4x: Fix uninitialized variable issue 2017-05-15 08:17:52 -07:00
soc UPSTREAM: soc/intel/apollolake: Add macro to define IOSTERM for GPIO config 2017-05-15 08:17:50 -07:00
southbridge UPSTREAM: amd/pi: Add AMD fam16h TPM ACPI path support 2017-05-15 08:17:47 -07:00
superio UPSTREAM: superio/nuvoton: Make SuperIO config functions externally available 2017-05-15 08:17:43 -07:00
vboot UPSTREAM: vboot: Separate board name and version number in FWID with a dot 2017-05-02 20:24:01 -07:00
vendorcode UPSTREAM: vendorcode/intel/fsp/fsp2_0/glk: Add FSP header files for GLK 2017-05-15 08:17:48 -07:00
Kconfig UPSTREAM: commonlib: Move drivers/storage into commonlib/storage 2017-05-15 08:17:50 -07:00