summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192u
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-03-09 22:15:21 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-11 11:35:34 -0700
commit8f18604e6f0975fa852f43f90d5556efd67efadc (patch)
treef36ae2b6163467d3448e298c8edd2435fd4a69bd /drivers/staging/rtl8192u
parent347fd7dbdb6ca771f59996ae3c75a2dfde66c3d7 (diff)
downloadlinux-8f18604e6f0975fa852f43f90d5556efd67efadc.tar.gz
linux-8f18604e6f0975fa852f43f90d5556efd67efadc.tar.bz2
linux-8f18604e6f0975fa852f43f90d5556efd67efadc.zip
Staging: drop redundant memset
The region set by the call to memset is immediately overwritten by the subsequent call to memcpy. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e1,e2,e3,e4; @@ - memset(e1,e2,e3); memcpy(e1,e4,e3); // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192u')
-rw-r--r--drivers/staging/rtl8192u/r819xU_cmdpkt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/r819xU_cmdpkt.c b/drivers/staging/rtl8192u/r819xU_cmdpkt.c
index fd19a85297a9..0cb28c776c49 100644
--- a/drivers/staging/rtl8192u/r819xU_cmdpkt.c
+++ b/drivers/staging/rtl8192u/r819xU_cmdpkt.c
@@ -63,7 +63,6 @@ SendTxCommandPacket(
tcb_desc->bLastIniPkt = 0;
skb_reserve(skb, USB_HWDESC_HEADER_LEN);
ptr_buf = skb_put(skb, DataLen);
- memset(ptr_buf,0,DataLen);
memcpy(ptr_buf,pData,DataLen);
tcb_desc->txbuf_size= (u16)DataLen;