All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.