Commit 8da63a65 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

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

Add missing return statement for CONFIG_BUG=n.
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9fae27b3
......@@ -121,6 +121,7 @@ static inline unsigned int vlan_proto_idx(__be16 proto)
return VLAN_PROTO_8021AD;
default:
BUG();
return 0;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment