RTL8366RB_NUM_VLANS
if (index >= RTL8366RB_NUM_VLANS)
if (index >= RTL8366RB_NUM_VLANS ||
if (port >= priv->num_ports || index >= RTL8366RB_NUM_VLANS)
unsigned int max = RTL8366RB_NUM_VLANS - 1;
priv->num_vlan_mc = RTL8366RB_NUM_VLANS;