Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58662d9f authored by Dilek Uzulmez's avatar Dilek Uzulmez Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8712: Replace __constant_cpu_to_le16



This fixes the following checkpatch.pl warning:
WARNING: __constant_cpu_to_le16 should be cpu_to_le16

Signed-off-by: default avatarDilek Uzulmez <dilekuzulmez@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 66faa441
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -243,9 +243,9 @@ enum WIFI_REG_DOMAIN {

#define SetFrameType(pbuf, type)	\
	do {	\
		*(unsigned short *)(pbuf) &= __constant_cpu_to_le16(~(BIT(3) | \
		*(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(3) | \
		BIT(2))); \
		*(unsigned short *)(pbuf) |= __constant_cpu_to_le16(type); \
		*(unsigned short *)(pbuf) |= cpu_to_le16(type); \
	} while (0)

#define GetFrameSubType(pbuf)	(cpu_to_le16(*(unsigned short *)(pbuf)) & \