linux/drivers/staging/rtl8723bs
Arushi Singhal 2dcce8ed66 staging: rtl8723bs: Replace memset with eth_zero_addr
Use eth_zero_addr to assign zero address to the given address array
instead of memset when the second argument in memset is address
of zero. Coccinelle was used to do the replacement and add the
header file linux/etherdevice.h if not already present.

The Coccinelle semantic patch that makes this change is as follows:
@header@
@@
#include <linux/etherdevice.h>

@r1@
expression e;
@@

-memset(e,0x00,ETH_ALEN);
+eth_zero_addr(e);

@includeheader depends on r1 && !header@
@@
+ #include <linux/etherdevice.h>
#include <...>

Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-06 04:07:48 -08:00
..
core staging: rtl8723bs: Replace memset with eth_zero_addr 2018-03-06 04:07:48 -08:00
hal staging: rtl8723bs: Remove unnecessary semicolon. 2018-03-06 04:07:48 -08:00
include staging: rtl8723bs: make 'myid' function to follow kernel coding rules 2018-02-16 15:41:27 +01:00
os_dep staging: rtl8723bs: Replace memset with eth_zero_addr 2018-03-06 04:07:48 -08:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
TODO