linux/drivers/staging/rtl8192u
Vaishali Thakkar 9c18a05c45 Staging: rtl8192u: Use put_unaligned_le16 in rtl819x_BAProc.c
This patch introduces the use of function put_unaligned_le16.

This is done using Coccinelle and semantic patch used is as follows:

@a@
typedef u16, __le16, uint16_t;
{u16,__le16,uint16_t} e16;
identifier tmp;
expression ptr;
expression y,e;
type T;
type T;
@@

- tmp = cpu_to_le16(y);

<+... when != tmp
(
- memcpy(ptr, (T)&tmp, \(2\|sizeof(u16)\|sizeof(__le16)\|sizeof(uint16_t)\|sizeof(e16)\));
+ put_unaligned_le16(y,ptr);
|
- memcpy(ptr, (T)&tmp, ...);
+ put_unaligned_le16(y,ptr);
)
...+>
? tmp = e

@@ type T; identifier a.tmp; @@

- T tmp;
...when != tmp

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-01-28 11:12:35 -08:00
..
ieee80211 Staging: rtl8192u: Use put_unaligned_le16 in rtl819x_BAProc.c 2015-01-28 11:12:35 -08:00
Kconfig
Makefile
authors
changes
copying
r819xU_cmdpkt.c
r819xU_cmdpkt.h
r819xU_firmware.c
r819xU_firmware.h
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_phy.c
r819xU_phy.h
r819xU_phyreg.h
r8180_93cx6.c
r8180_93cx6.h
r8190_rtl8256.c Staging: rtl8192u : fix space before , coding style issue in r8190_rtl8256.c 2015-01-17 14:02:57 -08:00
r8190_rtl8256.h
r8192U.h
r8192U_core.c staging: rtl8192u: Fix checkpatch.pl warnings 2014-10-29 16:43:41 +08:00
r8192U_dm.c staging: rtl8192u: Refactor heavy nesting 2015-01-28 11:10:41 -08:00
r8192U_dm.h
r8192U_hw.h
r8192U_wx.c
r8192U_wx.h