bridge: fix uninitialized variable warning
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Tue, 13 Jan 2015 00:25:28 +0000 (16:25 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jan 2015 21:39:36 +0000 (16:39 -0500)
commit0fe6de490320bfbf1b82a33d7ee49b62af5f29db
treecd24a37b07737ed73f637c6856f0351891cc570c
parentc66ad9ca3f4f55886829a61bd24fc5612d0c05c1
bridge: fix uninitialized variable warning

net/bridge/br_netlink.c: In function ‘br_fill_ifinfo’:
net/bridge/br_netlink.c:146:32: warning: ‘vid_range_flags’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  err = br_fill_ifvlaninfo_range(skb, vid_range_start,
                                ^
net/bridge/br_netlink.c:108:6: note: ‘vid_range_flags’ was declared here
  u16 vid_range_flags;

Reported-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c