summaryrefslogtreecommitdiff
path: root/drivers/net/qlge/qlge_main.c
diff options
context:
space:
mode:
authorRon Mercer <ron.mercer@qlogic.com>2009-07-02 06:06:09 (GMT)
committerDavid S. Miller <davem@davemloft.net>2009-07-04 02:10:30 (GMT)
commit6e9e4795e688fd61fa83f7f4cad4992939fd4ca3 (patch)
tree0e22a6b59a3c3bb177801e1cf17c2d5122f5b57f /drivers/net/qlge/qlge_main.c
parent8b007de19026e91991ae70ca0def31c42435e008 (diff)
downloadlinux-fsl-qoriq-6e9e4795e688fd61fa83f7f4cad4992939fd4ca3.tar.xz
qlge: Fix redundant call to free resources.
The caller will free acquired resouces if a failure occurs. Signed-off-by: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge_main.c')
-rw-r--r--drivers/net/qlge/qlge_main.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c
index c226257..1b75f6e 100644
--- a/drivers/net/qlge/qlge_main.c
+++ b/drivers/net/qlge/qlge_main.c
@@ -3374,11 +3374,6 @@ static int ql_get_adapter_resources(struct ql_adapter *qdev)
return -ENOMEM;
}
status = ql_request_irq(qdev);
- if (status)
- goto err_irq;
- return status;
-err_irq:
- ql_free_mem_resources(qdev);
return status;
}