]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6655: device_main Replace DEVICE_INFO with size of pointer
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 10 Aug 2014 14:47:02 +0000 (15:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:16 +0000 (12:23 -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 4f7509fc17c4f8262850e0703eef89360a349032..beab35d8a4cb6979ffdc367946ba42e646624a64 100644 (file)
@@ -839,7 +839,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)
                return -ENODEV;
        }
 
-       dev = alloc_etherdev(sizeof(DEVICE_INFO));
+       dev = alloc_etherdev(sizeof(*pDevice));
 
        pDevice = netdev_priv(dev);
 
@@ -999,7 +999,7 @@ static void vt6655_init_info(struct pci_dev *pcid,
 {
        struct vnt_private *p;
 
-       memset(*ppDevice, 0, sizeof(DEVICE_INFO));
+       memset(*ppDevice, 0, sizeof(**ppDevice));
 
        if (pDevice_Infos == NULL) {
                pDevice_Infos = *ppDevice;