diff options
| author | 2015-03-06 18:52:28 +0530 | |
|---|---|---|
| committer | 2015-03-16 15:50:16 +0100 | |
| commit | 6465144c3d19ca1c2f5fb1dd12d0a6496254c85c (patch) | |
| tree | 78739b45141ce08aba65ac1e8d5a747e546206a2 /include/linux/patchkey.h | |
| parent | Staging: rtl8712: Replace __constant_cpu_to_le16 (diff) | |
Staging: rtl8192u: Convert use of __constant_<foo> to <foo>
Using functions of the form __constant_<foo> isn't preferred
outside of include/uapi/ as using the function without
__constant_ is identical when the argument is a constant.
So, this patch replaces __constant_htons with htons.
This is done using Coccinelle and semantic patch used for
this is as follows:
@@identifier x;@@
(
- __constant_htons(x)
+ htons(x)
|
- __constant_htonl(x)
+ htonl(x)
|
- __constant_ntohs(x)
+ htons(x)
|
- __constant_ntohl(x)
+ htonl(x)
)
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/patchkey.h')
0 files changed, 0 insertions, 0 deletions
