Commit 1bd63757 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6655: device_main Replace DEVICE_INFO with size of pointer

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6af4336e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment