diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-14 06:50:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-17 22:49:20 -0500 |
commit | b9da9e9544724ee25af493bf117e2a8413be34a8 (patch) | |
tree | 35afc4225839f52ea6bdfe6d935d5a2cc7ea0711 /drivers/net/wireless | |
parent | fc68ed4fd7fdfafbefb270cf44194096156c7943 (diff) |
drivers/net/wireless/ipw2x00: fix sparse warnings: fix signedness
Fix this sparse warnings:
drivers/net/wireless/ipw2x00/ipw2100.c:1930:43: warning: incorrect type in argument 4 (different signedness)
drivers/net/wireless/ipw2x00/ipw2100.c:1938:76: warning: incorrect type in argument 4 (different signedness)
drivers/net/wireless/ipw2x00/ipw2100.c:1946:67: warning: incorrect type in argument 4 (different signedness)
drivers/net/wireless/ipw2x00/ipw2100.c:1953:72: warning: incorrect type in argument 4 (different signedness)
drivers/net/wireless/ipw2x00/ipw2100.c:4071:73: warning: incorrect type in argument 4 (different signedness)
drivers/net/wireless/ipw2x00/ipw2100.c:4078:43: warning: incorrect type in argument 4 (different signedness)
drivers/net/wireless/ipw2x00/ipw2100.c:4084:67: warning: incorrect type in argument 4 (different signedness)
drivers/net/wireless/ipw2x00/ipw2100.c:7141:73: warning: incorrect type in argument 4 (different signedness)
drivers/net/wireless/ipw2x00/ipw2100.c:8317:48: warning: incorrect type in argument 4 (different signedness)
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2100.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2100.c b/drivers/net/wireless/ipw2x00/ipw2100.c index 823c2bf5e31e..52b1cf5160f7 100644 --- a/drivers/net/wireless/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/ipw2x00/ipw2100.c | |||
@@ -1910,7 +1910,8 @@ static void isr_indicate_associated(struct ipw2100_priv *priv, u32 status) | |||
1910 | { | 1910 | { |
1911 | 1911 | ||
1912 | #define MAC_ASSOCIATION_READ_DELAY (HZ) | 1912 | #define MAC_ASSOCIATION_READ_DELAY (HZ) |
1913 | int ret, len, essid_len; | 1913 | int ret; |
1914 | unsigned int len, essid_len; | ||
1914 | char essid[IW_ESSID_MAX_SIZE]; | 1915 | char essid[IW_ESSID_MAX_SIZE]; |
1915 | u32 txrate; | 1916 | u32 txrate; |
1916 | u32 chan; | 1917 | u32 chan; |
@@ -4058,7 +4059,7 @@ static ssize_t show_bssinfo(struct device *d, struct device_attribute *attr, | |||
4058 | u8 bssid[ETH_ALEN]; | 4059 | u8 bssid[ETH_ALEN]; |
4059 | u32 chan = 0; | 4060 | u32 chan = 0; |
4060 | char *out = buf; | 4061 | char *out = buf; |
4061 | int length; | 4062 | unsigned int length; |
4062 | int ret; | 4063 | int ret; |
4063 | 4064 | ||
4064 | if (priv->status & STATUS_RF_KILL_MASK) | 4065 | if (priv->status & STATUS_RF_KILL_MASK) |
@@ -7122,7 +7123,7 @@ static int ipw2100_wx_get_rate(struct net_device *dev, | |||
7122 | { | 7123 | { |
7123 | struct ipw2100_priv *priv = ieee80211_priv(dev); | 7124 | struct ipw2100_priv *priv = ieee80211_priv(dev); |
7124 | int val; | 7125 | int val; |
7125 | int len = sizeof(val); | 7126 | unsigned int len = sizeof(val); |
7126 | int err = 0; | 7127 | int err = 0; |
7127 | 7128 | ||
7128 | if (!(priv->status & STATUS_ENABLED) || | 7129 | if (!(priv->status & STATUS_ENABLED) || |
@@ -8297,7 +8298,7 @@ static void ipw2100_wx_event_work(struct work_struct *work) | |||
8297 | struct ipw2100_priv *priv = | 8298 | struct ipw2100_priv *priv = |
8298 | container_of(work, struct ipw2100_priv, wx_event_work.work); | 8299 | container_of(work, struct ipw2100_priv, wx_event_work.work); |
8299 | union iwreq_data wrqu; | 8300 | union iwreq_data wrqu; |
8300 | int len = ETH_ALEN; | 8301 | unsigned int len = ETH_ALEN; |
8301 | 8302 | ||
8302 | if (priv->status & STATUS_STOPPING) | 8303 | if (priv->status & STATUS_STOPPING) |
8303 | return; | 8304 | return; |