ibmvnic: add missing parenthesis in do_reset()
authorJakub Kicinski <kuba@kernel.org>
Sat, 5 Sep 2020 04:07:49 +0000 (21:07 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Sep 2020 21:03:11 +0000 (14:03 -0700)
Indentation and logic clearly show that this code is missing
parenthesis.

Fixes: 9f1345737790 ("ibmvnic fix NULL tx_pools and rx_tools issue at do_reset")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c

index d3a7743..1b702a4 100644 (file)
@@ -2032,16 +2032,18 @@ static int do_reset(struct ibmvnic_adapter *adapter,
 
                } else {
                        rc = reset_tx_pools(adapter);
-                       if (rc)
+                       if (rc) {
                                netdev_dbg(adapter->netdev, "reset tx pools failed (%d)\n",
                                                rc);
                                goto out;
+                       }
 
                        rc = reset_rx_pools(adapter);
-                       if (rc)
+                       if (rc) {
                                netdev_dbg(adapter->netdev, "reset rx pools failed (%d)\n",
                                                rc);
                                goto out;
+                       }
                }
                ibmvnic_disable_irqs(adapter);
        }