diff options
author | Martin Roth <martinroth@google.com> | 2016-11-18 09:54:23 -0700 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2016-11-24 00:12:32 +0100 |
commit | ba1730b181ed1392d9c6b7ada7ab3bc35b68ffbd (patch) | |
tree | c6b202c2b1f25ae627f2f8ecdf2a2d21d3a7d1a0 /src/mainboard/intel | |
parent | c8c5ae101aed919959187a0ad33cfbff263ff6a7 (diff) |
soc/mediatek/mt8173/spi.c: Change assert to if statement
Asserts are only fatal if CONFIG_FATAL_ASSERTS is enabled in Kconfig.
By default this is disabled, so the assert is generally just a printf.
Die if someone decides to pass in an invalid bus number for some reason.
Addresses coverity issue 1349858 - Out-of-bounds read
Signed-off-by: Martin Roth <martinroth@google.com>
Change-Id: I9d79bc336cbbfde31f655cfd271f101e7a90ab1b
Reviewed-on: https://review.coreboot.org/17484
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/mainboard/intel')
0 files changed, 0 insertions, 0 deletions