staging: vt6655: vt6655_init_info remove memset.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 12 Sep 2015 18:10:32 +0000 (19:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2015 15:50:45 +0000 (08:50 -0700)
vnt_private is allocated with kzalloc so is already zero.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c

index fcc4510f81b35450e846a18bca81f87fcf956af6..03cc52e3c0d3b60dac7ccf5f99a8dcf6bbd790ea 100644 (file)
@@ -439,8 +439,6 @@ static void device_print_info(struct vnt_private *pDevice)
 static void vt6655_init_info(struct pci_dev *pcid,
                             struct vnt_private **ppDevice)
 {
-       memset(*ppDevice, 0, sizeof(**ppDevice));
-
        (*ppDevice)->pcid = pcid;
 
        spin_lock_init(&((*ppDevice)->lock));