linux/drivers/staging
Bhumika Goyal 30b48e2dbe Staging: ks7010: 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.
Script:
@header@
@@
#include <linux/etherdevice.h>

@r1@
expression e;
@@

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

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2016-09-17 23:32:13 +02:00
..
android staging: android ion/hisi: fix dependencies 2016-09-16 10:22:35 +02:00
board staging: board: line over 80 characters 2016-04-29 17:58:02 -07:00
clocking-wizard Staging: clocking-wizard: CHECK:Please use a blank line 2016-02-07 20:05:31 -08:00
comedi staging: comedi: Use the BIT() macro instead of left shifting 1 2016-09-16 10:27:52 +02:00
dgnc staging: dgnc: Fix long line and spelling mistake 2016-09-16 10:08:40 +02:00
emxx_udc staging: emxx_udc: add braces to if-else block 2016-09-16 10:10:34 +02:00
fbtft staging: fbtft: add spaces around << 2016-09-16 10:31:18 +02:00
fsl-mc staging: fsl-mc: remove .owner field for driver 2016-09-16 10:22:35 +02:00
fwserial staging: fwserial: fix checkpatch permission warnings 2016-09-13 15:44:46 +02:00
gdm724x staging: gdm724x: Remove unnecessary blank line 2016-09-16 10:10:34 +02:00
goldfish staging: goldfish: audio: fix compiliation on arm 2016-03-11 22:09:09 -08:00
gs_fpgaboot staging: gs_fpgaboot: Remove FSF address from GPL notice 2016-09-16 10:10:34 +02:00
i4l staging: i4l: correct misspelled "ressources" to "resources" 2016-09-16 10:31:18 +02:00
iio Second set of iio new device support, features and cleanups for the 4.9 cycle. 2016-09-14 20:42:03 +02:00
ks7010 Staging: ks7010: Replace memset with eth_zero_addr 2016-09-17 23:32:13 +02:00
lustre staging: lustre: Remove unnecessary return capture 2016-09-16 10:16:15 +02:00
media staging: media: lirc: lirc_imon: Fix alignment with the open parenthesis 2016-09-16 09:51:23 +02:00
most staging: most: hdm-dim2: monitor atx DBR space 2016-09-15 19:23:29 +02:00
mt29f_spinand staging: mt29f_spinand: set ECC algorithm explicitly 2016-05-05 23:52:04 +02:00
netlogic Staging: netlogic: Remove unused function 2016-09-16 10:10:34 +02:00
nvec Staging: nvec: removes a useless cast on a void pointer 2016-03-28 07:30:36 -07:00
octeon staging: octeon: remove multiple blank lines 2016-09-16 10:22:35 +02:00
octeon-usb staging: octeon-usb: correct driver name in Kconfig help text 2016-08-30 19:09:47 +02:00
olpc_dcon Revert "Staging: olpc_dcon: Remove obsolete driver" 2016-04-04 13:52:35 -07:00
rtl8188eu staging: r8188eu: remove ODM_CmnInfoPtrArrayHook function 2016-09-17 20:33:19 +02:00
rtl8192e Staging: rtl8192e: mark symbols static where possible 2016-09-12 12:29:27 +02:00
rtl8192u staging: rtl8192u: do not use undefined $(TOPDIR) in Makefile 2016-09-12 12:29:27 +02:00
rtl8712 staging: rtl8712: fix double lock bug in SetPSModeWorkItemCallback() 2016-09-16 10:05:13 +02:00
rts5208 staging: rts5208: make some vars to lower case to keep the style consistent 2016-09-16 10:22:35 +02:00
skein staging: skein: cleanup: align code to parentheses 2016-05-03 14:07:11 -07:00
slicoss staging: slicoss: Remove unnecessary braces {} 2016-09-16 09:55:33 +02:00
sm750fb staging: sm750fb: Change 'uint32_t' to 'u32' 2016-09-16 09:49:56 +02:00
speakup speakup: Add spinlock in synth_direct_store 2016-09-12 13:13:25 +02:00
unisys staging: unisys: visorbus: cleanup include listings 2016-09-12 13:28:49 +02:00
vme staging: vme/devices: vme_user.c: fix: converted decimal permissions to octal 2016-09-13 15:01:29 +02:00
vt6655 Staging: vt6655: Remove unused function vnt_key_init_table 2016-09-13 15:01:29 +02:00
vt6656 staging: vt6656: usbpipe.c: Fix checkpatch warning 2016-08-30 19:09:47 +02:00
wilc1000 staging: wilc1000: Use sizeof type *pointer instead of sizeof type 2016-09-17 23:32:13 +02:00
wlan-ng staging: wlan-ng: add spaces around << 2016-09-16 10:31:19 +02:00
xgifb staging: xgifb: fix alignment for if arguments 2016-09-16 10:27:52 +02:00
Kconfig staging: Remove rtl8723au driver 2016-09-10 15:21:43 +02:00
Makefile staging: Remove rtl8723au driver 2016-09-10 15:21:43 +02:00