]> git.baikalelectronics.ru Git - kernel.git/commit
arcnet: fix signed bug in probe function
authorDan Carpenter <error27@gmail.com>
Sat, 17 Jul 2010 07:21:28 +0000 (07:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Jul 2010 22:07:15 +0000 (15:07 -0700)
commit9fca53083451aef18cbbd5ab47749d22bb0d54e4
tree35239bcfbd1183deec54e7c9c43d2ec92da03e2e
parent9032ee89921850841dd1fe38c7d9527bbc2ec57f
arcnet: fix signed bug in probe function

probe_irq_off() returns the first irq found or if two irqs are found
then it returns the negative of the first irq found.  We can cast
dev->irq to an int so that the test for negative values works.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arcnet/com20020-isa.c
drivers/net/arcnet/com90io.c