Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Shradha Shah and committed by
David S. Miller
c9012e00 8be41320

+4 -4
+4 -4
drivers/net/ethernet/sfc/ef10.c
··· 346 346 * ask if it's already enabled 347 347 */ 348 348 rc = efx_mcdi_set_workaround(efx, MC_CMD_WORKAROUND_BUG35388, true); 349 - if (rc == 0) 349 + if (rc == 0) { 350 350 nic_data->workaround_35388 = true; 351 - else if (rc == -EPERM) { 351 + } else if (rc == -EPERM) { 352 352 unsigned int enabled; 353 353 354 354 rc = efx_mcdi_get_workarounds(efx, NULL, &enabled); ··· 356 356 goto fail3; 357 357 nic_data->workaround_35388 = enabled & 358 358 MC_CMD_GET_WORKAROUNDS_OUT_BUG35388; 359 - } 360 - else if (rc != -ENOSYS && rc != -ENOENT) 359 + } else if (rc != -ENOSYS && rc != -ENOENT) { 361 360 goto fail3; 361 + } 362 362 netif_dbg(efx, probe, efx->net_dev, 363 363 "workaround for bug 35388 is %sabled\n", 364 364 nic_data->workaround_35388 ? "en" : "dis");