ARM: fix bug of checking on signed return value using unsigned statement in w90p910...
authorWan ZongShun <mcuos.com@gmail.com>
Wed, 11 Nov 2009 04:35:22 +0000 (04:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Nov 2009 04:38:50 +0000 (20:38 -0800)
To fix the bug of checking on signed return value using unsigned statement.
Thanks Roel Kluin for digging out it.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arm/w90p910_ether.c

index 25e2627eb1183502f7efd571c5a3b3c86392eef4..b7f3866d546fdf570645f527c253917d2be45be6 100644 (file)
@@ -160,8 +160,8 @@ struct  w90p910_ether {
        struct mii_if_info mii;
        struct timer_list check_timer;
        void __iomem *reg;
-       unsigned int rxirq;
-       unsigned int txirq;
+       int rxirq;
+       int txirq;
        unsigned int cur_tx;
        unsigned int cur_rx;
        unsigned int finish_tx;