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:
b203262
)
net/ethernet: ks8851_mll: signedness bug in ks8851_probe()
author
Dan Carpenter
<
[email protected]
>
Thu, 16 Feb 2012 20:44:33 +0000
(20:44 +0000)
committer
David S. Miller
<
[email protected]
>
Sun, 19 Feb 2012 23:57:51 +0000
(18:57 -0500)
netdev->irq is unsigned, so it's never less than zero.
Signed-off-by: Dan Carpenter <
[email protected]
>
Tested-by: Jan Weitzel <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/micrel/ks8851_mll.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/micrel/ks8851_mll.c
b/drivers/net/ethernet/micrel/ks8851_mll.c
index 231176fcd2ba390d55741d6d5fa82e7be2311823..2784bc706f1e2cd4cca9ed6289f09105ece35bf3 100644
(file)
--- a/
drivers/net/ethernet/micrel/ks8851_mll.c
+++ b/
drivers/net/ethernet/micrel/ks8851_mll.c
@@
-1545,7
+1545,7
@@
static int __devinit ks8851_probe(struct platform_device *pdev)
netdev->irq = platform_get_irq(pdev, 0);
- if (netdev->irq < 0) {
+ if (
(int)
netdev->irq < 0) {
err = netdev->irq;
goto err_get_irq;
}