staging: vt6655: device_get_options remove unused variable devname
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 22 Sep 2014 20:27:47 +0000 (21:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:45:41 +0000 (23:45 -0700)
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index 1a1440f..76d5454 100644 (file)
@@ -331,8 +331,7 @@ static void vt6655_remove(struct pci_dev *pcid)
        device_free_info(pDevice);
 }
 
-static void device_get_options(struct vnt_private *pDevice,
-                              char *devname)
+static void device_get_options(struct vnt_private *pDevice)
 {
        POPTIONS pOpts = &(pDevice->sOpts);
 
@@ -923,7 +922,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)
        MACvInitialize(pDevice->PortOffset);
        MACvReadEtherAddress(pDevice->PortOffset, dev->dev_addr);
 
-       device_get_options(pDevice, dev->name);
+       device_get_options(pDevice);
        device_set_options(pDevice);
        //Mask out the options cannot be set to the chip
        pDevice->sOpts.flags &= pChip_info->flags;