ibmvnic: fix braces
authorLijun Pan <lijunp213@gmail.com>
Thu, 11 Feb 2021 06:43:20 +0000 (00:43 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2021 21:03:00 +0000 (13:03 -0800)
Fix the following checkpatch warning:
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Lijun Pan <lijunp213@gmail.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c

index 5c6f6a7b2e3f304dd77b85f8eac06bc6294e185c..6c1fc73d66dc24b18aaf52eeeedd30c3d2c35e31 100644 (file)
@@ -2040,9 +2040,8 @@ static int do_reset(struct ibmvnic_adapter *adapter,
                }
 
                rc = ibmvnic_login(netdev);
-               if (rc) {
+               if (rc)
                        goto out;
-               }
 
                if (adapter->reset_reason == VNIC_RESET_CHANGE_PARAM) {
                        rc = init_resources(adapter);