aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/csr
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2012-12-04 21:41:07 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-07 14:03:32 -0800
commit78855c7a7c3db183ddb311cd832a137ef7a5e83a (patch)
treeee46178a856fec9050167ee1713de2219fc40a5e /drivers/staging/csr
parentc020a7a4ea3bfd85afc1d2b5e18414252f18fe98 (diff)
downloadlinaro-lsk-78855c7a7c3db183ddb311cd832a137ef7a5e83a.tar.gz
staging: csr: remove unneeded call to memset().
In uf_send_pkt_to_encrypt(), the memory area zeroed by this call to memset() is overwritten by a call to memcpy() a few instructions later, so it is not needed. Signed-off-by: Cyril Roelandt <tipecaml@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/csr')
-rw-r--r--drivers/staging/csr/unifi_sme.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/csr/unifi_sme.c b/drivers/staging/csr/unifi_sme.c
index 7c6c4138fc7..76690374246 100644
--- a/drivers/staging/csr/unifi_sme.c
+++ b/drivers/staging/csr/unifi_sme.c
@@ -1196,7 +1196,6 @@ void uf_send_pkt_to_encrypt(struct work_struct *work)
if (pktBulkDataLength > 0) {
pktBulkData = kmalloc(pktBulkDataLength, GFP_KERNEL);
- memset(pktBulkData, 0, pktBulkDataLength);
} else {
unifi_error(priv, "uf_send_pkt_to_encrypt() : invalid buffer\n");
return;