]> asedeno.scripts.mit.edu Git - linux.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)
commit151c8b920cae9fb114b8e8869e3949bc2435841d
tree847543f0777de5db84b8ebdfc992e022287415fb
parentc0a78823120b70b59999b1ff6908df29adaf1ab5
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