]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
wifi: wext: merge adjacent CONFIG_COMPAT ifdef blocks
authorJohannes Berg <johannes.berg@intel.com>
Mon, 7 Oct 2024 19:50:25 +0000 (21:50 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 8 Oct 2024 19:54:05 +0000 (21:54 +0200)
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>
include/linux/wireless.h

index e6e34d74dda044f7ba020d09e65162b01fc703b7..03e5d3fe226dd39ba8c59c7d4a255be8d0e847a2 100644 (file)
@@ -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 */