[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>
This commit is contained in:

committed by
David S. Miller

parent
c7fdf26995
commit
8362cd413e
@@ -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;
|
||||
|
Reference in New Issue
Block a user