staging: wilc1000: refactor wilc_set_multicast_list() function
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 25 Sep 2018 06:23:43 +0000 (11:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:53:57 +0000 (20:53 +0200)
commitba853fe6f8a4657ec675d53a34d6bc6cbb7d1638
tree59482a70377a9d1de685b529988c7eca18055ea7
parentfb8ec2158fe85f440350bfb467129e2ae5204879
staging: wilc1000: refactor wilc_set_multicast_list() function

Refactor wilc_set_multicast_list() by making below changes:
o use kmalloc_array
o remove unnecessary res
o add u8 *cur_mc
o use i as index
o use '%pM' extension in netdev_dbg()

The below checkpatch issue is also resolved after code refactor.
'spaces preferred around that '/' (ctx:VxV)'

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c