summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
diff options
context:
space:
mode:
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>2015-03-04 08:56:45 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-06 15:30:07 -0800
commit8e5d9433412d34f02a83edd265605bfe6c347a0a (patch)
tree0d7ab49c74c5593c037ecc61758c6ded69051f7e /drivers/staging/rtl8712/rtl871x_ioctl_linux.c
parenta06487242467aa9511470f1f92184ae1a9149d37 (diff)
downloadop-kernel-dev-8e5d9433412d34f02a83edd265605bfe6c347a0a.zip
op-kernel-dev-8e5d9433412d34f02a83edd265605bfe6c347a0a.tar.gz
staging: rtl8188eu: replace memset(x,0,ETH_ALEN)
eth_zero_addr() is a wrapper function for memset if 0 is going to be assigned to a mac address. The aforementioned function replaces memset. In addition, linux/etherdevice.h was included as a header since it is the file that define the inline function eth_zero_addr(). The changes were carried out using 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>
Diffstat (limited to 'drivers/staging/rtl8712/rtl871x_ioctl_linux.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud