Permalink
Browse files

net: vlan: fix up vlan_proto_idx() for CONFIG_BUG=n

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...
1 parent 9fae27b commit 8da63a655d5b8ec16512ae6bfeee40c50f11404f @kaber kaber committed with davem330 Apr 21, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 net/8021q/vlan.h
View
@@ -121,6 +121,7 @@ static inline unsigned int vlan_proto_idx(__be16 proto)
return VLAN_PROTO_8021AD;
default:
BUG();
+ return 0;
}
}

0 comments on commit 8da63a6

Please sign in to comment.