Merge tag 'thunderbolt-for-v6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[platform/kernel/linux-starfive.git] / drivers / thunderbolt / nhi.c
index cfebec1..d76e923 100644 (file)
@@ -526,7 +526,8 @@ static int nhi_alloc_hop(struct tb_nhi *nhi, struct tb_ring *ring)
                         ring->hop);
                ret = -EBUSY;
                goto err_unlock;
-       } else if (!ring->is_tx && nhi->rx_rings[ring->hop]) {
+       }
+       if (!ring->is_tx && nhi->rx_rings[ring->hop]) {
                dev_warn(&nhi->pdev->dev, "RX hop %d already allocated\n",
                         ring->hop);
                ret = -EBUSY;