Staging: wilc1000: Use kmemdup instead of kmalloc and memcpy
authorShraddha Barke <shraddha.6596@gmail.com>
Fri, 16 Oct 2015 05:17:11 +0000 (10:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 04:59:35 +0000 (21:59 -0700)
commit543f5b1313b758d38f8ac9c2492a36400a0f0966
treeea95adbe18ab4998cc9c1d6d85f9af6fc7c5e570
parentb5c84cd86e86d929a28eb322659f69db353cabb9
Staging: wilc1000: Use kmemdup instead of kmalloc and memcpy

Replace kmalloc followed by memcpy with kmemdup
Problem found using coccicheck

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c