realtek: fix locking issues
[openwrt/staging/ldir.git] / target / linux / realtek / files-5.10 / drivers / net / dsa / rtl83xx / dsa.c
index 4e8bbc00dbdb450adfd0d3b97a2ad3b4ad4dfdf4..47806329835d80f848979cb7ca6c606ea39b1085 100644 (file)
@@ -1409,7 +1409,6 @@ static int rtl83xx_vlan_prepare(struct dsa_switch *ds, int port,
        priv->r->vlan_set_tagged(1, &info);
        pr_debug("SET: Tagged ports, VLAN %d: %llx\n", 1, info.tagged_ports);
 
-       mutex_unlock(&priv->reg_mutex);
        return 0;
 }