Skip to content

Commit

Permalink
sfc: Add paranthesis correctly on all branches of the if statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shradha Shah authored and David S. Miller committed Jun 2, 2015
1 parent 8be4132 commit c9012e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/net/ethernet/sfc/ef10.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,19 +346,19 @@ static int efx_ef10_probe(struct efx_nic *efx)
* ask if it's already enabled
*/
rc = efx_mcdi_set_workaround(efx, MC_CMD_WORKAROUND_BUG35388, true);
if (rc == 0)
if (rc == 0) {
nic_data->workaround_35388 = true;
else if (rc == -EPERM) {
} else if (rc == -EPERM) {
unsigned int enabled;

rc = efx_mcdi_get_workarounds(efx, NULL, &enabled);
if (rc)
goto fail3;
nic_data->workaround_35388 = enabled &
MC_CMD_GET_WORKAROUNDS_OUT_BUG35388;
}
else if (rc != -ENOSYS && rc != -ENOENT)
} else if (rc != -ENOSYS && rc != -ENOENT) {
goto fail3;
}
netif_dbg(efx, probe, efx->net_dev,
"workaround for bug 35388 is %sabled\n",
nic_data->workaround_35388 ? "en" : "dis");
Expand Down

0 comments on commit c9012e0

Please sign in to comment.