summaryrefslogtreecommitdiffstats
path: root/drivers/net/atl1e
diff options
context:
space:
mode:
authorIlpo Järvinen2008-08-19 09:32:06 +0200
committerJeff Garzik2008-08-27 11:36:20 +0200
commit50f684b900de431729d6f77e69c941560936f275 (patch)
tree8b47f5213a4c5b58dc9231dede2feb27ad953336 /drivers/net/atl1e
parentigb: remove 82576 quad adapter (diff)
downloadkernel-qcow2-linux-50f684b900de431729d6f77e69c941560936f275.tar.gz
kernel-qcow2-linux-50f684b900de431729d6f77e69c941560936f275.tar.xz
kernel-qcow2-linux-50f684b900de431729d6f77e69c941560936f275.zip
atl1e: multistatement if missing braces
Doesn't cause problems (yet) because err gets zeroed earlier. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/atl1e')
-rw-r--r--drivers/net/atl1e/atl1e_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c
index 82d7be1655d3..7685b995ff9b 100644
--- a/drivers/net/atl1e/atl1e_main.c
+++ b/drivers/net/atl1e/atl1e_main.c
@@ -2232,10 +2232,11 @@ static int atl1e_resume(struct pci_dev *pdev)
AT_WRITE_REG(&adapter->hw, REG_WOL_CTRL, 0);
- if (netif_running(netdev))
+ if (netif_running(netdev)) {
err = atl1e_request_irq(adapter);
if (err)
return err;
+ }
atl1e_reset_hw(&adapter->hw);