aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/xmit.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2007-09-20 14:13:40 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:07 -0400
commit1a09404a2338163f181d170c7abdc2242b6c6f03 (patch)
tree090a31041c1e294a2586f12679a17a5329129272 /drivers/net/wireless/b43/xmit.c
parentfb8e4444cc8c7719d9947e21a93e2e84bb1b36eb (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/xmit.c')
-rw-r--r--drivers/net/wireless/b43/xmit.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
index e6174b6f11fb..0bd6f8a348a8 100644
--- a/drivers/net/wireless/b43/xmit.c
+++ b/drivers/net/wireless/b43/xmit.c
@@ -121,10 +121,12 @@ void b43_generate_plcp_hdr(struct b43_plcp_hdr4 *plcp,
121 __u8 *raw = plcp->raw; 121 __u8 *raw = plcp->raw;
122 122
123 if (b43_is_ofdm_rate(bitrate)) { 123 if (b43_is_ofdm_rate(bitrate)) {
124 *data = b43_plcp_get_ratecode_ofdm(bitrate); 124 u32 d;
125
126 d = b43_plcp_get_ratecode_ofdm(bitrate);
125 B43_WARN_ON(octets & 0xF000); 127 B43_WARN_ON(octets & 0xF000);
126 *data |= (octets << 5); 128 d |= (octets << 5);
127 *data = cpu_to_le32(*data); 129 *data = cpu_to_le32(d);
128 } else { 130 } else {
129 u32 plen; 131 u32 plen;
130 132