From: roel kluin Date: Tue, 14 Oct 2008 14:36:31 +0000 (+0000) Subject: powerpc: Unsigned speed cannot be negative in udbg_16559.c X-Git-Tag: v2.6.28-rc1~58^2~25 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bb5e6491cae4c5d6ddfa3e173e22efb35f595949;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/kernel/udbg_16550.c b/arch/powerpc/kernel/udbg_16550.c index cb01ebc5938..7b7da8cfd5e 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;