drivers/net/cxgb3: fix sparse warnings: fix signedness
authorHannes Eder <hannes@hanneseder.net>
Sat, 14 Feb 2009 11:16:19 +0000 (11:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 01:26:10 +0000 (17:26 -0800)
Fix this sparse warning:
  drivers/net/cxgb3/ael1002.c:1010:60: warning: incorrect type in argument 4 (different signedness)

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Acked-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/ael1002.c

index 5c3c05da4d96338e3f80e659c3c6e09d0017121b..e1b22490ff597e439bbb1deb90b3638d59dfdb6f 100644 (file)
@@ -1005,7 +1005,8 @@ static int ael2005_reset(struct cphy *phy, int wait)
                { 0, 0, 0, 0 }
        };
 
-       int err, lasi_ctrl;
+       int err;
+       unsigned int lasi_ctrl;
 
        err = mdio_read(phy, MDIO_DEV_PMA_PMD, LASI_CTRL, &lasi_ctrl);
        if (err)