]> git.baikalelectronics.ru Git - kernel.git/commit
[media] dvb_core: Replace memset with eth_zero_addr
authorVaishali Thakkar <vthakkar1994@gmail.com>
Sat, 20 Jun 2015 02:58:17 +0000 (23:58 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 22 Jul 2015 16:32:21 +0000 (13:32 -0300)
commit63922c9321d1425e83e9945fc9852258eb549f36
treecd068d7573d7e0b0948ea996f0dbb35c7de40bc0
parent97eabb49d745f9b3a82adfe6fe014883ce9ecdf4
[media] dvb_core: Replace memset with eth_zero_addr

Use eth_zero_addr to assign the zero address to the given address
array instead of memset when second argument is address of zero.

The Coccinelle semantic patch that makes this change is as follows:

// <smpl>
@eth_zero_addr@
expression e;
@@

-memset(e,0x00,ETH_ALEN);
+eth_zero_addr(e);
// </smpl>

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-core/dvb_net.c