projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c020a7a
)
staging: csr: remove unneeded call to memset().
author
Cyril Roelandt
<tipecaml@gmail.com>
Tue, 4 Dec 2012 20:41:07 +0000
(21:41 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 22:03:32 +0000
(14:03 -0800)
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>
drivers/staging/csr/unifi_sme.c
patch
|
blob
|
history
diff --git
a/drivers/staging/csr/unifi_sme.c
b/drivers/staging/csr/unifi_sme.c
index
7c6c413
..
7669037
100644
(file)
--- 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;