ibmvnic: Fix missing brackets in init_sub_crq_irqs
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Thu, 27 Oct 2016 17:28:52 +0000 (12:28 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 21:18:46 +0000 (17:18 -0400)
Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c

index a922fb94fcebe106efa957030e20e279f0ad93a8..5f44c5520fbc86bd9076cc220906e0a4cdee4e90 100644 (file)
@@ -1461,14 +1461,16 @@ static int init_sub_crq_irqs(struct ibmvnic_adapter *adapter)
        return rc;
 
 req_rx_irq_failed:
-       for (j = 0; j < i; j++)
+       for (j = 0; j < i; j++) {
                free_irq(adapter->rx_scrq[j]->irq, adapter->rx_scrq[j]);
                irq_dispose_mapping(adapter->rx_scrq[j]->irq);
+       }
        i = adapter->req_tx_queues;
 req_tx_irq_failed:
-       for (j = 0; j < i; j++)
+       for (j = 0; j < i; j++) {
                free_irq(adapter->tx_scrq[j]->irq, adapter->tx_scrq[j]);
                irq_dispose_mapping(adapter->rx_scrq[j]->irq);
+       }
        release_sub_crqs_no_irqs(adapter);
        return rc;
 }