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
authors
changes
copying staging: rtl8192u: Fixed trailing whitespace in copying 2014-09-28 23:39:27 -04:00
Kconfig
Makefile staging: rtl8192u: remove unused define USB_RX_AGGREGATION_SUPPORT 2014-08-16 12:23:10 -07:00
r819xU_cmdpkt.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
r819xU_cmdpkt.h
r819xU_firmware_img.c Staging: rtl8192u: r819xU_firmware_img.c Fixed checkpatch.pl ERRORs 2014-05-25 11:25:40 -07:00
r819xU_firmware_img.h
r819xU_firmware.c staging: rtl8192u: add intermediate variable 2014-10-20 10:29:14 +08:00
r819xU_firmware.h staging: rtl8192u: Add space after enum definition 2014-10-20 10:29:15 +08:00
r819xU_phy.c staging: rtl8192u: Missing a blank line after declarations. 2014-10-20 10:29:15 +08:00
r819xU_phy.h
r819xU_phyreg.h staging:r819xU: coding style: Fixed commenting style 2014-08-16 12:23:15 -07:00
r8180_93cx6.c staging:r8180: coding style: Fixed commenting style 2014-08-01 14:42:52 -07:00
r8180_93cx6.h staging:r8180: coding style: Fixed too long lines 2014-08-01 14:42:52 -07:00
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_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 drivers: staging: rtl8192u: Fix "space required before that '*'" errors 2014-09-08 13:59:25 -07:00
r8192U_wx.c staging: rtl8192u: Remove unnecessary if 2014-10-27 10:33:05 +08:00
r8192U_wx.h
r8192U.h