net: vlan: fix up vlan_proto_idx() for CONFIG_BUG=n
authorPatrick McHardy <kaber@trash.net>
Sun, 21 Apr 2013 00:09:32 +0000 (00:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Apr 2013 19:58:19 +0000 (15:58 -0400)
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>
net/8021q/vlan.h

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