Skip to content

Commit

Permalink
net: vlan: fix up vlan_proto_idx() for CONFIG_BUG=n
Browse files Browse the repository at this point in the history
Add missing return statement for CONFIG_BUG=n.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Apr 21, 2013
1 parent 9fae27b commit 8da63a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/8021q/vlan.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ static inline unsigned int vlan_proto_idx(__be16 proto)
return VLAN_PROTO_8021AD;
default:
BUG();
return 0;
}
}

Expand Down

0 comments on commit 8da63a6

Please sign in to comment.