diff options
author | Johannes Berg <johannes.berg@intel.com> | 2024-10-07 21:50:25 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2024-10-08 21:54:05 +0200 |
commit | 9e1a98aac11b757e2634304bbe6bed5f5a58e0ee (patch) | |
tree | 82d9e9d9d31f3c70ac66daaec0d2b9d934075a19 /include/linux/wireless.h | |
parent | aee809aaa2d13bf560fe38d28c4969605e6d9d0e (diff) | |
download | lwn-9e1a98aac11b757e2634304bbe6bed5f5a58e0ee.tar.gz lwn-9e1a98aac11b757e2634304bbe6bed5f5a58e0ee.zip |
wifi: wext: merge adjacent CONFIG_COMPAT ifdef blocks
Simplify this, and also add a comment at the #endif.
Link: https://patch.msgid.link/20241007215025.5ecdad1e02ed.I54efa895efc496e06ba41e1c39c9df9e23b0171f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/linux/wireless.h')
-rw-r--r-- | include/linux/wireless.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/wireless.h b/include/linux/wireless.h index e6e34d74dda0..03e5d3fe226d 100644 --- a/include/linux/wireless.h +++ b/include/linux/wireless.h @@ -21,8 +21,7 @@ struct compat_iw_point { __u16 length; __u16 flags; }; -#endif -#ifdef CONFIG_COMPAT + struct __compat_iw_event { __u16 len; /* Real length of this stuff */ __u16 cmd; /* Wireless IOCTL */ @@ -49,5 +48,5 @@ struct __compat_iw_event { #define IW_EV_COMPAT_POINT_LEN \ (IW_EV_COMPAT_LCP_LEN + sizeof(struct compat_iw_point) - \ IW_EV_COMPAT_POINT_OFF) -#endif +#endif /* CONFIG_COMPAT */ #endif /* _LINUX_WIRELESS_H */ |