diff options
author | roel kluin <roel.kluin@gmail.com> | 2008-10-14 16:36:31 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-21 06:17:47 +0200 |
commit | bb5e6491cae4c5d6ddfa3e173e22efb35f595949 (patch) | |
tree | 8a21b2717bf7881caa84386a6b5937d1d4308ff0 /arch/powerpc/kernel/udbg_16550.c | |
parent | powerpc/pseries: Validate PFN in pseries_remove_lmb() (diff) | |
download | linux-bb5e6491cae4c5d6ddfa3e173e22efb35f595949.tar.xz linux-bb5e6491cae4c5d6ddfa3e173e22efb35f595949.zip |
powerpc: Unsigned speed cannot be negative in udbg_16559.c
"unsigned int" speed cannot be negative, it's thus pointless
to test if it is.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/udbg_16550.c')
-rw-r--r-- | arch/powerpc/kernel/udbg_16550.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/udbg_16550.c b/arch/powerpc/kernel/udbg_16550.c index cb01ebc59387..7b7da8cfd5e8 100644 --- a/arch/powerpc/kernel/udbg_16550.c +++ b/arch/powerpc/kernel/udbg_16550.c @@ -142,7 +142,7 @@ unsigned int udbg_probe_uart_speed(void __iomem *comport, unsigned int clock) speed = (clock / prescaler) / (divisor * 16); /* sanity check */ - if (speed < 0 || speed > (clock / 16)) + if (speed > (clock / 16)) speed = 9600; return speed; |