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:
parent
da8421d1e2
commit
74add8b70f
|
@ -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 clock_get_periph_rate(enum periph_id peripheral)
|
||||||
{
|
{
|
||||||
unsigned long sclk;
|
unsigned long sclk;
|
||||||
unsigned int src, div;
|
unsigned int div;
|
||||||
|
int src;
|
||||||
|
|
||||||
switch (peripheral) {
|
switch (peripheral) {
|
||||||
case PERIPH_ID_UART0:
|
case PERIPH_ID_UART0:
|
||||||
|
|
Loading…
Reference in New Issue