]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: use kmalloc(sizeof(*mgmt_tx)...) in mgmt_tx()
authorAjay Singh <ajay.kathat@microchip.com>
Fri, 11 May 2018 08:13:12 +0000 (13:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2018 12:04:48 +0000 (14:04 +0200)
commite5656760a16f9259fbb838a6508387e9746d6ccb
tree847543f0777de5db84b8ebdfc992e022287415fb
parentf0c26e3343274109cd7c3f88fc6c7749df283fc2
staging: wilc1000: use kmalloc(sizeof(*mgmt_tx)...) in mgmt_tx()

Fix below checkpatch issue found in mgmt_tx()

Prefer kmalloc(sizeof(*mgmt_tx)...) over kmalloc(sizeof(struct
p2p_mgmt_data)...)

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