Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8192e: rtllib_module: Remove redundant memset

alloc_etherdev function internally calls kvzalloc . So we may not need
explicit memset after this call.

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hariprasad Kelam and committed by
Greg Kroah-Hartman
da0721cc 42203fbe

-1
-1
drivers/staging/rtl8192e/rtllib_module.c
··· 83 83 return NULL; 84 84 } 85 85 ieee = (struct rtllib_device *)netdev_priv_rsl(dev); 86 - memset(ieee, 0, sizeof(struct rtllib_device) + sizeof_priv); 87 86 ieee->dev = dev; 88 87 89 88 err = rtllib_networks_allocate(ieee);