qlge: Fix redundant call to free resources.
authorRon Mercer <ron.mercer@qlogic.com>
Thu, 2 Jul 2009 06:06:09 +0000 (06:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jul 2009 02:10:30 +0000 (19:10 -0700)
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>
drivers/net/qlge/qlge_main.c

index c226257dc432d4900a04569eaa86ca00bcd76226..1b75f6efd7f4902668dc7409e0e66adf451006bc 100644 (file)
@@ -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;
 }