summaryrefslogtreecommitdiffstats
path: root/drivers/staging/r8188eu/include/wifi.h
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2022-02-27 17:41:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-03-01 22:34:15 +0100
commit7c22fd48fd4e9a89a8400828e77f169a604cfa3b (patch)
treefb46b3eb9929830c6d60a1a224f60074439cd593 /drivers/staging/r8188eu/include/wifi.h
parent1c167e3b8304b0b9ec39a48d26c645185456aa93 (diff)
downloadlinux-7c22fd48fd4e9a89a8400828e77f169a604cfa3b.tar.bz2
staging: r8188eu: use ieee80211 helper to check for more fragments
Use the ieee80211 helper to check the "more fragments" bit. Remove the internal GetMFrag macro. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220227164147.1168847-6-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/wifi.h')
-rw-r--r--drivers/staging/r8188eu/include/wifi.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/r8188eu/include/wifi.h b/drivers/staging/r8188eu/include/wifi.h
index 5b383c2e9880..1d703bc94fca 100644
--- a/drivers/staging/r8188eu/include/wifi.h
+++ b/drivers/staging/r8188eu/include/wifi.h
@@ -183,8 +183,6 @@ enum WIFI_REG_DOMAIN {
#define SetMFrag(pbuf) \
*(__le16 *)(pbuf) |= cpu_to_le16(_MORE_FRAG_)
-#define GetMFrag(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_MORE_FRAG_)) != 0)
-
#define ClearMFrag(pbuf) \
*(__le16 *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_))