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>
This commit is contained in:
roel kluin 2008-10-14 14:36:31 +00:00 коммит произвёл Benjamin Herrenschmidt
Родитель 04badfd293
Коммит bb5e6491ca
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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