diff options
| author | Vaishali Thakkar <[email protected]> | 2015-06-26 09:54:00 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-07-14 19:49:51 -0700 |
| commit | 7ee8095bfe1d61ab4a59f5eff14d833ff90c0b38 (patch) | |
| tree | 16ee5ea578715c7aa6033fdae9786d2ad043d1c2 /include/linux | |
| parent | e60b6538342ec047ae2e49335f65b7f92585fab9 (diff) | |
Staging: rtl8192u: 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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions