diff options
author | Vasiliy Kulikov <segoon@openwall.com> | 2011-01-17 05:08:52 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-03 14:40:46 -0500 |
commit | 940f3be4058e0aff0505fd6f68e29e547e10e552 (patch) | |
tree | 53084a8dafb83b0ae45da59f18c9c3943d9f4acd /drivers/tty | |
parent | ebf53826e105f488f4f628703a108e98940d1dc5 (diff) |
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 <segoon@openwall.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/bfin_sport_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
788 | sport->port.mapbase = res->start; | 788 | sport->port.mapbase = res->start; |
789 | 789 | ||
790 | sport->port.irq = platform_get_irq(pdev, 0); | 790 | sport->port.irq = platform_get_irq(pdev, 0); |
791 | if (sport->port.irq < 0) { | 791 | if ((int)sport->port.irq < 0) { |
792 | dev_err(&pdev->dev, "No sport RX/TX IRQ specified\n"); | 792 | dev_err(&pdev->dev, "No sport RX/TX IRQ specified\n"); |
793 | ret = -ENOENT; | 793 | ret = -ENOENT; |
794 | goto out_error_unmap; | 794 | goto out_error_unmap; |