wireless: replace uses of __constant_{endian}
The base versions handle constant folding now. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
e5d24efe52
commit
c1b4aa3fb6
@@ -573,9 +573,9 @@ static const struct { \
|
||||
__le16 id; \
|
||||
u8 val[length]; \
|
||||
} __attribute__ ((packed)) default_pdr_data_##pid = { \
|
||||
__constant_cpu_to_le16((sizeof(default_pdr_data_##pid)/ \
|
||||
cpu_to_le16((sizeof(default_pdr_data_##pid)/ \
|
||||
sizeof(__le16)) - 1), \
|
||||
__constant_cpu_to_le16(pid), \
|
||||
cpu_to_le16(pid), \
|
||||
data \
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user