diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index efb57d91156975b3b43a2afdc588128a2f6e1f79..7ca2ae45b2d59e5dc9bc85e00f58480b2f00f3e3 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -643,9 +643,7 @@ static inline u16 br_get_pvid(const struct net_port_vlans *v) * vid wasn't set */ smp_rmb(); - return (v->pvid & VLAN_TAG_PRESENT) ? - (v->pvid & ~VLAN_TAG_PRESENT) : - VLAN_N_VID; + return v->pvid ?: VLAN_N_VID; } #else