diff options
| author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2014-10-31 16:36:18 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-03 16:09:27 -0800 |
| commit | 19e016c39967e23d127517b1d4baf00927870639 (patch) | |
| tree | 5c8da5cb8fb1309c4a6b0d806074f5ece7e14175 /tools/perf/scripts/python/netdev-times.py | |
| parent | 0f24cd7062cdb9e45cb05265fa1b9fc619c56084 (diff) | |
Staging: rtl8192u: Use put_unaligned_le16
This patch introduces the use of function put_unaligned_le16.
This is done using Coccinelle and semantic patch used is as follows:
@@ identifier tmp; expression ptr; expression y,e; type T; @@
- tmp = cpu_to_le16(y);
<+... when != tmp
- memcpy(ptr, (T)&tmp, ...);
+ put_unaligned_le16(y,ptr);
...+>
? tmp = e
@@ type T; identifier tmp; @@
- T tmp;
...when != tmp
Here, unnecessory comment after change is removed too.
This patch also fixes sparse warnings in file ieeee80211_softmac.c.
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
