Skip to content

Commit 9c5f5a5

Browse files
gal-pressmankuba-moo
authored andcommitted
net: vlan: Use IS_ENABLED() helper for CONFIG_VLAN_8021Q guard
The header currently tests the VLAN core with an explicit pair of 'if defined' checks: #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE) Instead, use IS_ENABLED() which is the kernel way to test whether an option is configured as builtin/module. This is purely cosmetic – no functional changes. Reviewed-by: Alex Lazar <[email protected]> Reviewed-by: Dragos Tatulea <[email protected]> Signed-off-by: Gal Pressman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 60a8b1a commit 9c5f5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/if_vlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ struct vlan_pcpu_stats {
131131
u32 tx_dropped;
132132
};
133133

134-
#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
134+
#if IS_ENABLED(CONFIG_VLAN_8021Q)
135135

136136
extern struct net_device *__vlan_find_dev_deep_rcu(struct net_device *real_dev,
137137
__be16 vlan_proto, u16 vlan_id);

0 commit comments

Comments
 (0)