diff options
author | Ron Mercer <ron.mercer@qlogic.com> | 2009-07-02 02:06:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-03 22:10:30 -0400 |
commit | 6e9e4795e688fd61fa83f7f4cad4992939fd4ca3 (patch) | |
tree | 0e22a6b59a3c3bb177801e1cf17c2d5122f5b57f /drivers/net/qlge | |
parent | 8b007de19026e91991ae70ca0def31c42435e008 (diff) |
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')
-rw-r--r-- | drivers/net/qlge/qlge_main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/qlge/qlge_main.c b/drivers/net/qlge/qlge_main.c index c226257dc432..1b75f6efd7f4 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) | |||
3374 | return -ENOMEM; | 3374 | return -ENOMEM; |
3375 | } | 3375 | } |
3376 | status = ql_request_irq(qdev); | 3376 | status = ql_request_irq(qdev); |
3377 | if (status) | ||
3378 | goto err_irq; | ||
3379 | return status; | ||
3380 | err_irq: | ||
3381 | ql_free_mem_resources(qdev); | ||
3382 | return status; | 3377 | return status; |
3383 | } | 3378 | } |
3384 | 3379 | ||