staging: rtl8712: avoid a useless call to memset().
authorCyril Roelandt <tipecaml@gmail.com>
Tue, 11 Dec 2012 00:20:48 +0000 (01:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 22:53:58 +0000 (14:53 -0800)
commit2df29e7bf2e99bfb085370753291083ae745b057
treeb48a7ed5e822776d25a80267cd6d0d0fa8994e21
parentac6a98d452baa4f9acae7c2238f6626bae8283ff
staging: rtl8712: avoid a useless call to memset().

In r8711_wx_get_wap(), make sure we do not call memcpy() on a memory area that
has just been zeroed by a call to memset().

Signed-off-by: Cyril Roelandt <tipecaml@gmail.com>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c