UPSTREAM: samsung/exynos5420: Fix test for src < 0
It was unsigned, not a good place to be for testing < 0. Change-Id: I126fe86422900bbae2c3ca16052be27985cfed53 Original-Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Found-by: Coverity Scan #1241911 Original-Reviewed-on: https://review.coreboot.org/17888 Original-Reviewed-by: Nico Huber <nico.h@gmx.de> Original-Tested-by: build bot (Jenkins) Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/421220 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
bd3c7e71f8
commit
e225821693
1 changed files with 2 additions and 1 deletions
|
|
@ -161,7 +161,8 @@ static int clock_select_to_pll(enum peripheral_clock_select sel)
|
|||
unsigned long clock_get_periph_rate(enum periph_id peripheral)
|
||||
{
|
||||
unsigned long sclk;
|
||||
unsigned int src, div;
|
||||
unsigned int div;
|
||||
int src;
|
||||
|
||||
switch (peripheral) {
|
||||
case PERIPH_ID_UART0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue