projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebf5382
)
tty: serial: bfin_sport_uart: fix signedness error
author
Vasiliy Kulikov
<segoon@openwall.com>
Mon, 17 Jan 2011 10:08:52 +0000
(13:08 +0300)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 3 Feb 2011 19:40:46 +0000
(11:40 -0800)
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>
drivers/tty/serial/bfin_sport_uart.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/bfin_sport_uart.c
b/drivers/tty/serial/bfin_sport_uart.c
index e95c524d9d18839f552c03cf1ba060de0b84631e..c3ec0a61d859e72b04d92757af5c548a2fe67b11 100644
(file)
--- 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;