]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: slicoss: Eliminate commented out code
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Sun, 21 Feb 2016 21:31:44 +0000 (16:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
Remove commented out code to reduce code clutter.

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c

index a91c60a3a202eb1153bbc7bbad116329bd73d569..3d0a3933d199b1c8ebddd457bc22d80c99328c40 100644 (file)
@@ -545,14 +545,6 @@ static int slic_card_download(struct adapter *adapter)
                        instruction = *(u32 *)(fw->data + index);
                        index += 4;
 
-                       /* Check SRAM location zero. If it is non-zero. Abort.*/
-                    /*
-                     * failure = readl((u32 __iomem *)&slic_regs->slic_reset);
-                     * if (failure) {
-                     * release_firmware(fw);
-                     * return -EIO;
-                     * }
-                     */
                }
        }
        release_firmware(fw);
@@ -907,11 +899,6 @@ static void slic_upr_start(struct adapter *adapter)
 {
        struct slic_upr *upr;
        __iomem struct slic_regs *slic_regs = adapter->slic_regs;
-/*
- *  char * ptr1;
- *  char * ptr2;
- *  uint cmdoffset;
- */
        upr = adapter->upr_list;
        if (!upr)
                return;
@@ -2923,9 +2910,8 @@ static void slic_init_adapter(struct net_device *netdev,
        adapter->functionnumber = (pcidev->devfn & 0x7);
        adapter->slic_regs = memaddr;
        adapter->irq = pcidev->irq;
-/*     adapter->netdev = netdev;*/
        adapter->chipid = chip_idx;
-       adapter->port = 0;      /*adapter->functionnumber;*/
+       adapter->port = 0;
        adapter->cardindex = adapter->port;
        spin_lock_init(&adapter->upr_lock);
        spin_lock_init(&adapter->bit64reglock);
@@ -3140,7 +3126,6 @@ static int slic_entry_probe(struct pci_dev *pcidev,
        mmio_start = pci_resource_start(pcidev, 0);
        mmio_len = pci_resource_len(pcidev, 0);
 
-/*     memmapped_ioaddr =  (u32)ioremap_nocache(mmio_start, mmio_len);*/
        memmapped_ioaddr = ioremap(mmio_start, mmio_len);
        if (!memmapped_ioaddr) {
                dev_err(&pcidev->dev, "cannot remap MMIO region %lx @ %lx\n",