diff options
author | Cyril Roelandt <tipecaml@gmail.com> | 2012-12-04 20:41:07 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-07 22:03:32 (GMT) |
commit | 78855c7a7c3db183ddb311cd832a137ef7a5e83a (patch) | |
tree | ee46178a856fec9050167ee1713de2219fc40a5e /drivers | |
parent | c020a7a4ea3bfd85afc1d2b5e18414252f18fe98 (diff) | |
download | linux-fsl-qoriq-78855c7a7c3db183ddb311cd832a137ef7a5e83a.tar.xz |
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')
-rw-r--r-- | drivers/staging/csr/unifi_sme.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/csr/unifi_sme.c b/drivers/staging/csr/unifi_sme.c index 7c6c413..7669037 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; |