From: Patrick McHardy Date: Sun, 21 Apr 2013 00:09:32 +0000 (+0000) Subject: net: vlan: fix up vlan_proto_idx() for CONFIG_BUG=n X-Git-Tag: v3.12-rc1~874^2~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8da63a655d5b8ec16512ae6bfeee40c50f11404f;p=kernel%2Fkernel-generic.git net: vlan: fix up vlan_proto_idx() for CONFIG_BUG=n Add missing return statement for CONFIG_BUG=n. Reported-by: kbuild test robot Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h index abc9cb6..ba5983f 100644 --- a/net/8021q/vlan.h +++ b/net/8021q/vlan.h @@ -121,6 +121,7 @@ static inline unsigned int vlan_proto_idx(__be16 proto) return VLAN_PROTO_8021AD; default: BUG(); + return 0; } }