mirror of https://gitee.com/openkylin/linux.git
staging: vt6655: vt6655_init_info remove memset.
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>
This commit is contained in:
parent
73eb8a1127
commit
e577474f3b
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue