]> err.no Git - linux-2.6/commitdiff
NetXen: Removal of extra free_irq call
authorMithlesh Thukral <mithlesh@netxen.com>
Fri, 1 Jun 2007 11:13:08 +0000 (04:13 -0700)
committerJeff Garzik <jeff@garzik.org>
Sun, 3 Jun 2007 15:45:47 +0000 (11:45 -0400)
NetXen: Removal of redundant free_irq
This patch removes a redundant free_irq() call from remove() routine.
This will also eliminate a warning during unload of driver.

Signed-by: Mithlesh Thukral <mithlesh@netxen.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/netxen/netxen_nic_main.c

index 2c5c6d20e6e91c8ca8609e67e2ec474e9b53e797..c61181f23bd58dce16d347240b39da5f04f3fb40 100644 (file)
@@ -654,8 +654,6 @@ static void __devexit netxen_nic_remove(struct pci_dev *pdev)
        if (adapter->portnum == 0)
                netxen_free_adapter_offload(adapter);
 
-       if (adapter->irq)
-               free_irq(adapter->irq, adapter);
        if(adapter->portnum == 0) {
                /* leave the hw in the same state as reboot */
                writel(0, NETXEN_CRB_NORMALIZE(adapter, CRB_CMDPEG_STATE));