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>
This commit is contained in:
Patrick McHardy 2013-04-21 00:09:32 +00:00 committed by David S. Miller
parent 9fae27b337
commit 8da63a655d
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@ static inline unsigned int vlan_proto_idx(__be16 proto)
return VLAN_PROTO_8021AD;
default:
BUG();
return 0;
}
}