coreboot/src
Furquan Shaikh e7de6fb162 intel/apollolake: Fix check for return value of pmc_gpe_route_to_gpio
pmc_gpe_route_to_gpio returns -1 on error. However, the value was being
stored in unsigned int and compared against -1. Fix this by using local
variable ret.

Change-Id: I5ec824949d4ee0fbdbb2ffdc9fc9d4762455b27b
Reported-by: Coverity ID 1357443, 1357442, 1357441
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/16218
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-08-18 01:07:36 +02:00
..
acpi src/acpi: Capitalize ACPI and SATA 2016-07-31 19:25:40 +02:00
arch arch/riscv: Improve and refactor trap handling diagnostics 2016-08-15 18:28:03 +02:00
commonlib commonlib/region: allow empty mmap()/munmap() in region_device_ops 2016-08-15 21:03:06 +02:00
console console: Add write line routine 2016-08-10 22:30:19 +02:00
cpu cpu/ti/am355x: Fix array overrun 2016-08-14 19:07:21 +02:00
device src/device: Capitalize CPU, RAM and ROM 2016-07-31 18:33:30 +02:00
drivers Revert "Kconfig: separate memory mapped boot device from SPI" 2016-08-15 21:24:02 +02:00
ec chromeec/acpi: add Tablet event and EC ACPI MEM 2016-08-12 18:06:53 +02:00
include console: Change CONFIG_CHROMEOS requirement from do_printk_va_list() 2016-08-16 23:14:30 +02:00
lib Revert "Kconfig: separate memory mapped boot device from SPI" 2016-08-15 21:24:02 +02:00
mainboard mainboard: Clean up boot_option/reboot_bits in cmos.layout 2016-08-17 00:27:42 +02:00
northbridge x4x: make preallocated IGD memory a cmos option 2016-08-09 10:43:03 +02:00
soc intel/apollolake: Fix check for return value of pmc_gpe_route_to_gpio 2016-08-18 01:07:36 +02:00
southbridge chromeos chipsets: select RTC usage 2016-08-08 18:37:37 +02:00
superio superio/*: Relocate Kconfig to chip folder. 2016-08-09 10:38:30 +02:00
vboot vboot: Move TPM-related Kconfig selects from CHROMEOS to VBOOT 2016-08-16 23:14:21 +02:00
vendorcode vboot: Move TPM-related Kconfig selects from CHROMEOS to VBOOT 2016-08-16 23:14:21 +02:00
Kconfig Revert "Kconfig: separate memory mapped boot device from SPI" 2016-08-15 21:24:02 +02:00