diff options
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 79a8d0d48bf7..eeb09e05903c 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -2023,7 +2023,7 @@ void lbs_ps_confirm_sleep(struct lbs_private *priv, u16 psmode) | |||
2023 | * @return 0 on success, error on failure | 2023 | * @return 0 on success, error on failure |
2024 | */ | 2024 | */ |
2025 | int lbs_cmd_copyback(struct lbs_private *priv, unsigned long extra, | 2025 | int lbs_cmd_copyback(struct lbs_private *priv, unsigned long extra, |
2026 | struct cmd_header *resp) | 2026 | struct cmd_header *resp) |
2027 | { | 2027 | { |
2028 | struct cmd_header *buf = (void *)extra; | 2028 | struct cmd_header *buf = (void *)extra; |
2029 | uint16_t copy_len; | 2029 | uint16_t copy_len; |
@@ -2032,8 +2032,8 @@ int lbs_cmd_copyback(struct lbs_private *priv, unsigned long extra, | |||
2032 | 2032 | ||
2033 | copy_len = min(le16_to_cpu(buf->size), le16_to_cpu(resp->size)); | 2033 | copy_len = min(le16_to_cpu(buf->size), le16_to_cpu(resp->size)); |
2034 | lbs_deb_cmd("Copying back %u bytes; command response was %u bytes, " | 2034 | lbs_deb_cmd("Copying back %u bytes; command response was %u bytes, " |
2035 | "copy back buffer was %u bytes", copy_len, resp->size, | 2035 | "copy back buffer was %u bytes\n", copy_len, |
2036 | buf->size); | 2036 | le16_to_cpu(resp->size), le16_to_cpu(buf->size)); |
2037 | memcpy(buf, resp, copy_len); | 2037 | memcpy(buf, resp, copy_len); |
2038 | 2038 | ||
2039 | lbs_deb_leave(LBS_DEB_CMD); | 2039 | lbs_deb_leave(LBS_DEB_CMD); |