* [PATCH 1/2] ath6kl: Remove unneeded memset in roam related config func
@ 2012-05-28 6:21 rmani
2012-05-28 6:21 ` [PATCH 2/2] ath6kl: Fix typo in htc mbox debug print msg rmani
2012-05-29 11:22 ` [PATCH 1/2] ath6kl: Remove unneeded memset in roam related config func Kalle Valo
0 siblings, 2 replies; 3+ messages in thread
From: rmani @ 2012-05-28 6:21 UTC (permalink / raw)
To: kvalo; +Cc: ath6kl-devel, linux-wireless
From: Raja Mani <rmani@qca.qualcomm.com>
No need to clear requested memory after allocating new SKB
with help of ath6kl_wmi_get_new_buf(). This clear part is
already taken care in ath6kl_wmi_get_new_buf().
Found this on code review.
Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
---
drivers/net/wireless/ath/ath6kl/wmi.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c
index 63dc4fd..43bce9c 100644
--- a/drivers/net/wireless/ath/ath6kl/wmi.c
+++ b/drivers/net/wireless/ath/ath6kl/wmi.c
@@ -743,7 +743,6 @@ int ath6kl_wmi_force_roam_cmd(struct wmi *wmi, const u8 *bssid)
return -ENOMEM;
cmd = (struct roam_ctrl_cmd *) skb->data;
- memset(cmd, 0, sizeof(*cmd));
memcpy(cmd->info.bssid, bssid, ETH_ALEN);
cmd->roam_ctrl = WMI_FORCE_ROAM;
@@ -763,7 +762,6 @@ int ath6kl_wmi_set_roam_mode_cmd(struct wmi *wmi, enum wmi_roam_mode mode)
return -ENOMEM;
cmd = (struct roam_ctrl_cmd *) skb->data;
- memset(cmd, 0, sizeof(*cmd));
cmd->info.roam_mode = mode;
cmd->roam_ctrl = WMI_SET_ROAM_MODE;
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] ath6kl: Fix typo in htc mbox debug print msg
2012-05-28 6:21 [PATCH 1/2] ath6kl: Remove unneeded memset in roam related config func rmani
@ 2012-05-28 6:21 ` rmani
2012-05-29 11:22 ` [PATCH 1/2] ath6kl: Remove unneeded memset in roam related config func Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: rmani @ 2012-05-28 6:21 UTC (permalink / raw)
To: kvalo; +Cc: ath6kl-devel, linux-wireless
From: Raja Mani <rmani@qca.qualcomm.com>
Add missing ZERO (x%x to 0x%x) in the format specifier
while printing hex value in htc module.
Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
---
drivers/net/wireless/ath/ath6kl/htc_mbox.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/ath/ath6kl/htc_mbox.c b/drivers/net/wireless/ath/ath6kl/htc_mbox.c
index 2798624..cd0e1ba 100644
--- a/drivers/net/wireless/ath/ath6kl/htc_mbox.c
+++ b/drivers/net/wireless/ath/ath6kl/htc_mbox.c
@@ -1309,7 +1309,7 @@ static int ath6kl_htc_rx_packet(struct htc_target *target,
}
ath6kl_dbg(ATH6KL_DBG_HTC,
- "htc rx 0x%p hdr x%x len %d mbox 0x%x\n",
+ "htc rx 0x%p hdr 0x%x len %d mbox 0x%x\n",
packet, packet->info.rx.exp_hdr,
padded_len, dev->ar->mbox_info.htc_addr);
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] ath6kl: Remove unneeded memset in roam related config func
2012-05-28 6:21 [PATCH 1/2] ath6kl: Remove unneeded memset in roam related config func rmani
2012-05-28 6:21 ` [PATCH 2/2] ath6kl: Fix typo in htc mbox debug print msg rmani
@ 2012-05-29 11:22 ` Kalle Valo
1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2012-05-29 11:22 UTC (permalink / raw)
To: rmani; +Cc: ath6kl-devel, linux-wireless
On 05/28/2012 09:21 AM, rmani@qca.qualcomm.com wrote:
> From: Raja Mani <rmani@qca.qualcomm.com>
>
> No need to clear requested memory after allocating new SKB
> with help of ath6kl_wmi_get_new_buf(). This clear part is
> already taken care in ath6kl_wmi_get_new_buf().
>
> Found this on code review.
>
> Signed-off-by: Raja Mani <rmani@qca.qualcomm.com>
Thanks, both patches applied.
Kalle
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-05-29 11:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-28 6:21 [PATCH 1/2] ath6kl: Remove unneeded memset in roam related config func rmani
2012-05-28 6:21 ` [PATCH 2/2] ath6kl: Fix typo in htc mbox debug print msg rmani
2012-05-29 11:22 ` [PATCH 1/2] ath6kl: Remove unneeded memset in roam related config func Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).