]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: use sizeof(*wdev) to allocate memory in wilc_wfi_cfg_alloc()
authorAjay Singh <ajay.kathat@microchip.com>
Fri, 11 May 2018 08:13:11 +0000 (13:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 12:04:48 +0000 (14:04 +0200)
commitf0c26e3343274109cd7c3f88fc6c7749df283fc2
treec25dbdc6fa7c25db36dc38c4231d334d2c05f8cc
parent1c2fe4116483a6c51f093596336689c7e6875e20
staging: wilc1000: use sizeof(*wdev) to allocate memory in wilc_wfi_cfg_alloc()

Fix below reported checkpatch issues in wilc_wfi_cfg_alloc().
kzalloc(sizeof(*wdev)...) over kzalloc(sizeof(struct wireless_dev)

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c