diff options
author | Dan Williams <dcbw@redhat.com> | 2007-08-03 09:40:55 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:50:17 -0700 |
commit | 8362cd413e8116306fafbaf414f0419db0595142 (patch) | |
tree | dad2dc7fe6988d6733eaf2f1f454bf6068133448 /drivers/net/wireless/libertas/debugfs.c | |
parent | c7fdf26995d5d6ebf1c3314ad001b9a4983c3f04 (diff) | |
download | blackbird-op-linux-8362cd413e8116306fafbaf414f0419db0595142.tar.gz blackbird-op-linux-8362cd413e8116306fafbaf414f0419db0595142.zip |
[PATCH] libertas: fix sparse-reported problems
A few fields being converted to the wrong sized type, and a few missed
endian conversions.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/debugfs.c')
-rw-r--r-- | drivers/net/wireless/libertas/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index 63e747ac49d0..6d95148e8725 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c @@ -510,7 +510,7 @@ static u16 libertas_get_events_bitmap(wlan_private *priv) return 0; } - if (pcmdptr->command != CMD_RET(CMD_802_11_SUBSCRIBE_EVENT)) { + if (le16_to_cpu(pcmdptr->command) != CMD_RET(CMD_802_11_SUBSCRIBE_EVENT)) { lbs_pr_err("command response incorrect!\n"); kfree(response_buf); return 0; |