linux/drivers/staging/rtl8192u
Vaishali Thakkar 19e016c399 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>
2014-11-03 16:09:27 -08:00
..
ieee80211 Staging: rtl8192u: Use put_unaligned_le16 2014-11-03 16:09:27 -08:00
authors
changes
copying
Kconfig
Makefile
r819xU_cmdpkt.c
r819xU_cmdpkt.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_firmware_img.c
r819xU_firmware_img.h
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
r8180_93cx6.c
r8180_93cx6.h
r8190_rtl8256.c
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: delete successive assignments to the same location 2014-10-28 15:53:26 +08:00
r8192U_dm.h
r8192U_hw.h
r8192U_wx.c staging: rtl8192u: Remove unnecessary if 2014-10-27 10:33:05 +08:00
r8192U_wx.h