diff options
| author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2014-10-31 23:39:14 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-03 16:10:38 -0800 |
| commit | 2b365fa9d9264faa7ebccf313899d096b228c65a (patch) | |
| tree | 420523a7a836433acf1ad059f0a9eda167d0a385 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 85ebbcca8ac2014d439fd90764e334924ca33ed3 (diff) | |
Staging: rtl8188eu: Use put_unaligned_le32
This patch introduces the use of function put_unaligned_le32.
This is done using Coccinelle and semantic patch used is as follows:
@@ identifier tmp; expression ptr; expression y,e; type T; @@
- tmp = cpu_to_le32(y);
<+... when != tmp
- memcpy(ptr, (T)&tmp, ...);
+ put_unaligned_le32(y,ptr);
...+>
? tmp = e
@@ type T; identifier tmp; @@
- T tmp;
...when != tmp
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
