diff options
author | Shradha Shah <sshah@solarflare.com> | 2015-06-02 06:37:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-02 15:57:24 -0400 |
commit | c9012e002b643790eb0311744cdf13e489397327 (patch) | |
tree | 7039a6d499bf548b8680a53d8cbdfc191f9ecc2f /drivers/net/ethernet/sfc | |
parent | 8be41320f346ee8bdcbbc866fcc8c4fdbcb6527d (diff) |
sfc: Add paranthesis correctly on all branches of the if statement
This change is a stylistic change and does not affect
functionality.
Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r-- | drivers/net/ethernet/sfc/ef10.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethernet/sfc/ef10.c b/drivers/net/ethernet/sfc/ef10.c index 06605abbe7c9..14c5205200da 100644 --- a/drivers/net/ethernet/sfc/ef10.c +++ b/drivers/net/ethernet/sfc/ef10.c | |||
@@ -346,9 +346,9 @@ static int efx_ef10_probe(struct efx_nic *efx) | |||
346 | * ask if it's already enabled | 346 | * ask if it's already enabled |
347 | */ | 347 | */ |
348 | rc = efx_mcdi_set_workaround(efx, MC_CMD_WORKAROUND_BUG35388, true); | 348 | rc = efx_mcdi_set_workaround(efx, MC_CMD_WORKAROUND_BUG35388, true); |
349 | if (rc == 0) | 349 | if (rc == 0) { |
350 | nic_data->workaround_35388 = true; | 350 | nic_data->workaround_35388 = true; |
351 | else if (rc == -EPERM) { | 351 | } else if (rc == -EPERM) { |
352 | unsigned int enabled; | 352 | unsigned int enabled; |
353 | 353 | ||
354 | rc = efx_mcdi_get_workarounds(efx, NULL, &enabled); | 354 | rc = efx_mcdi_get_workarounds(efx, NULL, &enabled); |
@@ -356,9 +356,9 @@ static int efx_ef10_probe(struct efx_nic *efx) | |||
356 | goto fail3; | 356 | goto fail3; |
357 | nic_data->workaround_35388 = enabled & | 357 | nic_data->workaround_35388 = enabled & |
358 | MC_CMD_GET_WORKAROUNDS_OUT_BUG35388; | 358 | MC_CMD_GET_WORKAROUNDS_OUT_BUG35388; |
359 | } | 359 | } else if (rc != -ENOSYS && rc != -ENOENT) { |
360 | else if (rc != -ENOSYS && rc != -ENOENT) | ||
361 | goto fail3; | 360 | goto fail3; |
361 | } | ||
362 | netif_dbg(efx, probe, efx->net_dev, | 362 | netif_dbg(efx, probe, efx->net_dev, |
363 | "workaround for bug 35388 is %sabled\n", | 363 | "workaround for bug 35388 is %sabled\n", |
364 | nic_data->workaround_35388 ? "en" : "dis"); | 364 | nic_data->workaround_35388 ? "en" : "dis"); |