staging/slicoss: remove not-needed ASSERT
authorDevendra Naga <devendra.aaru@gmail.com>
Mon, 9 Jul 2012 17:34:18 +0000 (23:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 20:06:21 +0000 (13:06 -0700)
As the private pointer is valid at the remove of driver, and remove wont' be called if probe fails, so no point for checking of ASSERT

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c

index d2b82a7..a511a2b 100644 (file)
@@ -3196,7 +3196,6 @@ static void __devexit slic_entry_remove(struct pci_dev *pcidev)
        struct sliccard *card;
        struct mcast_address *mcaddr, *mlist;
 
-       ASSERT(adapter);
        slic_adapter_freeresources(adapter);
        slic_unmap_mmio_space(adapter);
        unregister_netdev(dev);