samsung/exynos5420: Fix test for src < 0

It was unsigned, not a good place to be for testing < 0.

Change-Id: I126fe86422900bbae2c3ca16052be27985cfed53
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Found-by: Coverity Scan #1241911
Reviewed-on: https://review.coreboot.org/17888
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins)
This commit is contained in:
Patrick Georgi 2016-12-15 15:51:13 +01:00 committed by Patrick Georgi
parent da8421d1e2
commit 74add8b70f
1 changed files with 2 additions and 1 deletions

View File

@ -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: