linux-stable/drivers/staging/rtl8192u
Bhumika Goyal f80c1d5763 Staging: rtl8192u: Replace memset with eth_broadcast_addr
Use eth_broadcast_addr to assign the broadcast address to the given
address array instead of memset when the second argument is a broacast
address 0xff. ETH_ALEN is a macro with value 6, so 6 is treated as
ETH_ALEN if it is the third argument of memset.

Done using coccinelle.
@@
expression e;
@@
- memset(e,\(0xff\|0xFF\|255\),\(ETH_ALEN\|6\));
+ eth_broadcast_addr(e);

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-11 22:09:09 -08:00
..
ieee80211 Staging: rtl8192u: Replace memset with eth_broadcast_addr 2016-03-11 22:09:09 -08:00
authors
changes
copying
Kconfig
Makefile
r819xU_cmdpkt.c
r819xU_cmdpkt.h
r819xU_firmware.c
r819xU_firmware.h
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_phy.c staging: rtl8192u: use to_delayed_work 2016-02-07 19:56:45 -08:00
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c
r8180_93cx6.h
r8190_rtl8256.c Staging: rtl8192u: Fix block comment formatting 2016-02-07 19:56:45 -08:00
r8190_rtl8256.h
r8192U.h
r8192U_core.c Staging: rtl8192u: Clean up tests if NULL returned on failure 2016-03-11 22:09:09 -08:00
r8192U_dm.c Staging: rtl8192u: Convert long if-else block to switch-case 2016-02-20 15:09:57 -08:00
r8192U_dm.h
r8192U_hw.h
r8192U_wx.c staging: rtl8192u: Fix block comments use * on subsequent lines in r8192U_wx.c 2016-02-07 19:56:45 -08:00
r8192U_wx.h