net: vlan: Fixed signedness in vlan_group_prealloc_vid()
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 28 Sep 2020 02:31:50 +0000 (19:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Sep 2020 07:51:39 +0000 (00:51 -0700)
commit0675c285ea65540cccae64c87dfc7a00c7ede03a
treeec56052d7d43b43433755deb33b662d72451d896
parent4cd4b3619a2d434fe14304a925429855cfb4c953
net: vlan: Fixed signedness in vlan_group_prealloc_vid()

After commit d0186842ec5f ("net: vlan: Avoid using BUG() in
vlan_proto_idx()"), vlan_proto_idx() was changed to return a signed
integer, however one of its called: vlan_group_prealloc_vid() was still
using an unsigned integer for its return value, fix that.

Fixes: d0186842ec5f ("net: vlan: Avoid using BUG() in vlan_proto_idx()")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan.c