diff options
author | Patrick McHardy <kaber@trash.net> | 2013-04-20 20:09:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-21 15:58:19 -0400 |
commit | 8da63a655d5b8ec16512ae6bfeee40c50f11404f (patch) | |
tree | 06777b0e8a564c4ec367a20f9fd5668483cc8ad9 /net/8021q | |
parent | 9fae27b33785cb6350f21449073d9f7d1a2bbfd6 (diff) |
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>
Diffstat (limited to 'net/8021q')
-rw-r--r-- | net/8021q/vlan.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/8021q/vlan.h b/net/8021q/vlan.h index abc9cb631c47..ba5983f34c42 100644 --- a/net/8021q/vlan.h +++ b/net/8021q/vlan.h | |||
@@ -121,6 +121,7 @@ static inline unsigned int vlan_proto_idx(__be16 proto) | |||
121 | return VLAN_PROTO_8021AD; | 121 | return VLAN_PROTO_8021AD; |
122 | default: | 122 | default: |
123 | BUG(); | 123 | BUG(); |
124 | return 0; | ||
124 | } | 125 | } |
125 | } | 126 | } |
126 | 127 | ||