diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-08-10 14:47:02 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-16 19:23:16 (GMT) |
commit | 1bd6375760ef13baeee404276b95034c691f2ed8 (patch) | |
tree | 85730ae11114afebc0c20478fbe77f51804917e7 | |
parent | 6af4336e64dde7d0dd910c10de5dced9ef7ecf64 (diff) | |
download | linux-1bd6375760ef13baeee404276b95034c691f2ed8.tar.xz |
staging: vt6655: device_main Replace DEVICE_INFO with size of pointer
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/vt6655/device_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 4f7509f..beab35d 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -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; |