diff options
author | Michael Buesch <mb@bu3sch.de> | 2007-09-20 14:13:40 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:52:07 -0400 |
commit | 1a09404a2338163f181d170c7abdc2242b6c6f03 (patch) | |
tree | 090a31041c1e294a2586f12679a17a5329129272 /drivers/net/wireless/b43/main.c | |
parent | fb8e4444cc8c7719d9947e21a93e2e84bb1b36eb (diff) |
[B43]: Fix sparse warnings.
The remaining warning in phy.c will be fixed later.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/b43/main.c')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index fd4ef27fcf25..66c89df51fb8 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -1062,7 +1062,7 @@ static void handle_irq_noise(struct b43_wldev *dev) | |||
1062 | B43_WARN_ON(!dev->noisecalc.calculation_running); | 1062 | B43_WARN_ON(!dev->noisecalc.calculation_running); |
1063 | if (dev->noisecalc.channel_at_start != phy->channel) | 1063 | if (dev->noisecalc.channel_at_start != phy->channel) |
1064 | goto drop_calculation; | 1064 | goto drop_calculation; |
1065 | *((u32 *) noise) = cpu_to_le32(b43_jssi_read(dev)); | 1065 | *((__le32 *)noise) = cpu_to_le32(b43_jssi_read(dev)); |
1066 | if (noise[0] == 0x7F || noise[1] == 0x7F || | 1066 | if (noise[0] == 0x7F || noise[1] == 0x7F || |
1067 | noise[2] == 0x7F || noise[3] == 0x7F) | 1067 | noise[2] == 0x7F || noise[3] == 0x7F) |
1068 | goto generate_new; | 1068 | goto generate_new; |
@@ -1598,8 +1598,7 @@ static int do_request_fw(struct b43_wldev *dev, | |||
1598 | const char *name, | 1598 | const char *name, |
1599 | const struct firmware **fw) | 1599 | const struct firmware **fw) |
1600 | { | 1600 | { |
1601 | const size_t plen = sizeof(modparam_fwpostfix) + 32; | 1601 | char path[sizeof(modparam_fwpostfix) + 32]; |
1602 | char path[plen]; | ||
1603 | struct b43_fw_header *hdr; | 1602 | struct b43_fw_header *hdr; |
1604 | u32 size; | 1603 | u32 size; |
1605 | int err; | 1604 | int err; |