2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 07:34:06 +08:00
linux-next/drivers/staging/rtl8188eu
Tapasweni Pathak a707edd236 staging: rtl8188eu: core: Remove redundant memset before memcpy
The region set by the call to memset, immediately overwritten by the
subsequent call to memcpy makes the memset redundant.

This patch removes the redundant memset before memcpy using the
following coccinelle script:

@@
expression e1,e2,e3,e4;
@@

- memset(e1,e2,e3);
  memcpy(e1,e4,e3);

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-10-28 15:41:42 +08:00
..
core staging: rtl8188eu: core: Remove redundant memset before memcpy 2014-10-28 15:41:42 +08:00
hal staging: remove unneeded parentheses around the right hand side of an assignment 2014-10-27 10:33:06 +08:00
include Staging: rtl8188eu: include: Remove unused macros 2014-10-20 10:29:12 +08:00
os_dep staging: rtl8188eu: os_dep: Remove null check before kfree 2014-10-27 10:33:06 +08:00
Kconfig staging: rtl8188eu: Remove P2P support 2014-07-09 21:08:47 -07:00
Makefile staging: rtl8188eu: Remove odm_debug.c 2014-09-23 23:47:12 -07:00
TODO staging: Additional item for rtl8188eu TODO list 2014-02-14 09:19:53 -08:00