forked from Minki/linux
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>
This commit is contained in:
parent
8b007de190
commit
6e9e4795e6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user