drivers/net/wireless/prism54: fix sparse warning: fix signedness
authorHannes Eder <hannes@hanneseder.net>
Sat, 14 Feb 2009 11:50:45 +0000 (11:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Feb 2009 03:49:21 +0000 (19:49 -0800)
Fix sparse warning:
  drivers/net/wireless/prism54/isl_ioctl.c:2997:32: warning: incorrect type in argument 2 (different signedness)
  drivers/net/wireless/prism54/oid_mgt.c:712:42: warning: incorrect type in argument 2 (different signedness)

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/prism54/isl_ioctl.c
drivers/net/wireless/prism54/oid_mgt.c

index 57a150a22de5c6544bee00f7799e5b2caf9164e6..4c97c6ad6f5dea80cfee1869551e1ea32d50818d 100644 (file)
@@ -2981,7 +2981,8 @@ prism54_set_spy(struct net_device *ndev,
                union iwreq_data *uwrq, char *extra)
 {
        islpci_private *priv = netdev_priv(ndev);
-       u32 u, oid = OID_INL_CONFIG;
+       u32 u;
+       enum oid_num_t oid = OID_INL_CONFIG;
 
        down_write(&priv->mib_sem);
        mgt_get(priv, OID_INL_CONFIG, &u);
index 57a4ac34bed6cd2eefcb9034ae5a85ec75bfc642..1187e6112a641ee1de6cbc6c8ac80d1cee4a40d9 100644 (file)
@@ -698,7 +698,7 @@ int
 mgt_commit(islpci_private *priv)
 {
        int rvalue;
-       u32 u;
+       enum oid_num_t u;
 
        if (islpci_get_state(priv) < PRV_STATE_INIT)
                return 0;