Skip to content

Commit 6ca91c6

Browse files
Rosen, Ramidavem330
authored andcommitted
bridge: Fix setting a flag in br_fill_ifvlaninfo_range().
This patch fixes setting of vinfo.flags in the br_fill_ifvlaninfo_range() method. The assignment of vinfo.flags &= ~BRIDGE_VLAN_INFO_RANGE_BEGIN has no effect and is unneeded, as vinfo.flags value is overriden by the immediately following vinfo.flags = flags | BRIDGE_VLAN_INFO_RANGE_END assignement. Signed-off-by: Rami Rosen <[email protected]> Acked-by: Roopa Prabhu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a155a5d commit 6ca91c6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/bridge/br_netlink.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ static int br_fill_ifvlaninfo_range(struct sk_buff *skb, u16 vid_start,
164164
sizeof(vinfo), &vinfo))
165165
goto nla_put_failure;
166166

167-
vinfo.flags &= ~BRIDGE_VLAN_INFO_RANGE_BEGIN;
168-
169167
vinfo.vid = vid_end;
170168
vinfo.flags = flags | BRIDGE_VLAN_INFO_RANGE_END;
171169
if (nla_put(skb, IFLA_BRIDGE_VLAN_INFO,

0 commit comments

Comments
 (0)