diff options
| author | Vaishali Thakkar <[email protected]> | 2015-08-19 05:48:44 +0000 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2015-09-06 18:59:20 +0000 |
| commit | 420fa2118c020a005e9f0311c1e0b27414306618 (patch) | |
| tree | 390799f2ab04630507f802cb64b61c11019b7bb0 /net/unix/af_unix.c | |
| parent | mpt2sas: setpci reset kernel oops fix (diff) | |
| download | kernel-420fa2118c020a005e9f0311c1e0b27414306618.tar.gz kernel-420fa2118c020a005e9f0311c1e0b27414306618.zip | |
fcoe: Convert use of __constant_htons to htons
In little endian cases, the macro htons unfolds to __swab16 which
provides special case for constants. In big endian cases,
__constant_htons and htons expand directly to the same expression.
So, replace __constant_htons with htons with the goal of getting
rid of the definition of __constant_htons completely.
The semantic patch that performs this transformation is as follows:
@@expression x;@@
- __constant_htons(x)
+ htons(x)
Signed-off-by: Vaishali Thakkar <[email protected]>
Acked-by: Vasu Dev <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
