From: Vasiliy Kulikov Date: Mon, 17 Jan 2011 10:08:52 +0000 (+0300) Subject: tty: serial: bfin_sport_uart: fix signedness error X-Git-Tag: MMI-PSA29.97-13-9~20522^2~76 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=940f3be4058e0aff0505fd6f68e29e547e10e552;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git tty: serial: bfin_sport_uart: fix signedness error sport->port.irq is unsigned, check for <0 doesn't make sense. Explicitly cast it to int to check for error. Signed-off-by: Vasiliy Kulikov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/bfin_sport_uart.c b/drivers/tty/serial/bfin_sport_uart.c index e95c524d9d18..c3ec0a61d859 100644 --- a/drivers/tty/serial/bfin_sport_uart.c +++ b/drivers/tty/serial/bfin_sport_uart.c @@ -788,7 +788,7 @@ static int __devinit sport_uart_probe(struct platform_device *pdev) sport->port.mapbase = res->start; sport->port.irq = platform_get_irq(pdev, 0); - if (sport->port.irq < 0) { + if ((int)sport->port.irq < 0) { dev_err(&pdev->dev, "No sport RX/TX IRQ specified\n"); ret = -ENOENT; goto out_error_unmap;