linux/drivers/staging/rtl8192e
Vaishali Thakkar 0f24cd7062 Staging: rtl8192e: 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, to be compatible with the change header file is added too.

Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-11-03 16:09:27 -08:00
..
rtl8192e staging: rtl8192e: delete successive assignments to the same location 2014-10-28 15:53:25 +08:00
dot11d.c staging: rtl8192e: fixed coding style issues 2014-08-30 13:54:03 -07:00
dot11d.h
Kconfig
license
Makefile
rtl819x_BA.h
rtl819x_BAProc.c Staging: rtl8192e: Use put_unaligned_le16 2014-11-03 16:09:27 -08:00
rtl819x_HT.h
rtl819x_HTProc.c staging: rtl8192e: Fix void function return statements style 2014-10-02 11:56:43 -07:00
rtl819x_Qos.h
rtl819x_TS.h
rtl819x_TSProc.c Staging: rtl8192e: Fix space before semicolon warning 2014-09-19 17:14:30 -07:00
rtllib_crypt_ccmp.c Staging: rtl8192e: Fix style warnings relating to printk(KERN_DEBUG 2014-09-19 17:11:06 -07:00
rtllib_crypt_tkip.c staging: rtl8192e: fixed coding style issues 2014-08-30 13:54:03 -07:00
rtllib_crypt_wep.c Staging: rtl8192e: Fix printk debug style warning 2014-09-19 17:14:30 -07:00
rtllib_crypt.c
rtllib_crypt.h
rtllib_debug.h
rtllib_endianfree.h
rtllib_module.c staging: rtl8192e: fixed coding style issues 2014-08-30 13:54:03 -07:00
rtllib_rx.c staging: rtl8192e: Remove unnecessary code 2014-10-27 10:33:06 +08:00
rtllib_softmac_wx.c Staging: rtl8192e: Remove unused variable 2014-09-28 23:39:27 -04:00
rtllib_softmac.c staging, rtl8192e, LLVMLinux: Make static local in inline function const 2014-10-29 16:33:05 -07:00
rtllib_tx.c staging: rtl8192e: Remove unneeded void return 2014-10-02 11:56:43 -07:00
rtllib_wx.c staging: rtl8192e: fixed coding style issues 2014-08-30 13:54:03 -07:00
rtllib.h staging, rtl8192e, LLVMLinux: Remove unused prototype 2014-10-29 16:33:05 -07:00
TODO