linux/drivers/staging/rtl8192u
Aya Mahfouz 47f0585a20 staging: rtl8192u: ieee80211: replace memset(x,0,ETH_ALEN) by eth_zero_addr(x)
eth_zero_addr() is a wrapper function for memset if 0 is going to
be assigned to a mac address. The replacement was done by the
following coccinelle script:

@header@
@@

#include <linux/etherdevice.h>

@eth_zero_addr@
expression e;
@@

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

@eth_broadcast_addr@
identifier e;
@@

-memset(e,\(0xff\|0xFF\|255\),ETH_ALEN);
+eth_broadcast_addr(e);

@linux_header depends on !header && (eth_zero_addr || eth_broadcast_addr) @
@@

+ #include <linux/etherdevice.h>
+

@special_header depends on !header && !linux_header && (eth_zero_addr || eth_broadcast_addr) @
@@

+
+ #include <linux/etherdevice.h>
+

@custom_header depends on !header && !linux_header && !special_header && (eth_zero_addr || eth_broadcast_addr) @
@@

+
+ #include <linux/etherdevice.h>

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-06 09:54:34 -08:00
..
ieee80211 staging: rtl8192u: ieee80211: replace memset(x,0,ETH_ALEN) by eth_zero_addr(x) 2015-03-06 09:54:34 -08:00
Kconfig
Makefile
authors
changes
copying
r819xU_cmdpkt.c
r819xU_cmdpkt.h
r819xU_firmware.c Staging: rtl8192u: Replace TRUE and FALSE macros 2015-03-01 17:04:43 -08:00
r819xU_firmware.h
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_phy.c Staging: rtl8192u: Replace TRUE and FALSE macros 2015-03-01 17:04:43 -08:00
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c
r8180_93cx6.h
r8190_rtl8256.c Staging: rtl8192u: Simplify if condition. 2015-02-26 13:46:35 -08:00
r8190_rtl8256.h Staging: rtl8192u: Fix line over 80 characters 2015-03-01 17:07:05 -08:00
r8192U.h Staging: rtl8192u: Remove TRUE and FALSE macros 2015-03-01 17:04:43 -08:00
r8192U_core.c Staging: rtl8192u: Replace TRUE and FALSE macros 2015-03-01 17:04:43 -08:00
r8192U_dm.c Staging: rtl8192u: Fix duplicate conditional branch 2015-03-06 09:54:34 -08:00
r8192U_dm.h
r8192U_hw.h
r8192U_wx.c Staging: rtl8192u: Replace printk() with netdev_dbg() 2015-03-01 17:07:05 -08:00
r8192U_wx.h Staging: rtl8192u: Fix comments 2015-03-01 17:07:05 -08:00