diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-06-26 07:47:49 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 18:50:56 +0300 |
commit | fa9163b570d9cecedcfb45116f2a20dd03fb9cae (patch) | |
tree | 7c5e23e93550b3421b44015f9817c4856ffa5e7c /drivers/platform | |
parent | a73df85892964a436f9c7f2f803e143b8c97d1ac (diff) | |
download | linux-fa9163b570d9cecedcfb45116f2a20dd03fb9cae.tar.xz |
[media] ttpci: 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.
Note that the 6 in the third argument of memset appears to represent
an ethernet address size (ETH_ALEN).
The Coccinelle semantic patch that makes this change is as follows:
// <smpl>
@eth_zero_addr@
expression e;
@@
-memset(e,0x00,6);
+eth_zero_addr(e);
// </smpl>
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions