aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmdresp.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-08-03 09:40:55 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:50:17 -0400
commit8362cd413e8116306fafbaf414f0419db0595142 (patch)
treedad2dc7fe6988d6733eaf2f1f454bf6068133448 /drivers/net/wireless/libertas/cmdresp.c
parentc7fdf26995d5d6ebf1c3314ad001b9a4983c3f04 (diff)
[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/cmdresp.c')
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index c43b2725e5bc..4c36e63ae7b0 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -812,8 +812,8 @@ int libertas_process_rx_command(wlan_private * priv)
812 812
813 if (adapter->cur_cmd->cmdflags & CMD_F_HOSTCMD) { 813 if (adapter->cur_cmd->cmdflags & CMD_F_HOSTCMD) {
814 /* Copy the response back to response buffer */ 814 /* Copy the response back to response buffer */
815 memcpy(adapter->cur_cmd->pdata_buf, resp, resp->size); 815 memcpy(adapter->cur_cmd->pdata_buf, resp,
816 816 le16_to_cpu(resp->size));
817 adapter->cur_cmd->cmdflags &= ~CMD_F_HOSTCMD; 817 adapter->cur_cmd->cmdflags &= ~CMD_F_HOSTCMD;
818 } 818 }
819 819