linux/drivers/net/wireless/marvell
Himanshu Jha 85dafc1291 mwifiex: remove unnecessary call to memset
call to memset to assign 0 value immediately after allocating
memory with kzalloc is unnecesaary as kzalloc allocates the memory
filled with 0 value.

Semantic patch used to resolve this issue:

@@
expression e,e2; constant c;
statement S;
@@

  e = kzalloc(e2, c);
  if(e == NULL) S
- memset(e, 0, e2);

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-09-20 15:46:59 +03:00
..
libertas libertas: constify usb_device_id 2017-08-10 11:55:59 +03:00
libertas_tf libertas_tf: constify usb_device_id 2017-08-10 11:55:59 +03:00
mwifiex mwifiex: remove unnecessary call to memset 2017-09-20 15:46:59 +03:00
Kconfig
Makefile
mwl8k.c mac80211: separate encoding/bandwidth from flags 2017-04-28 10:41:45 +02:00