]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: ccree: use sizeof(*var) in kmalloc
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Sun, 9 Jul 2017 05:45:59 +0000 (00:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:40:57 +0000 (08:40 +0200)
commit4a73bb48ded88adfc7180cb5a00a0b89dd41c7fb
treed0a8fff795b8f50035bc1a069a87c6297b08de18
parent60ba7c7c26b8df3688a952cf4bcfbc8dcdafdb9b
staging: ccree: use sizeof(*var) in kmalloc

Fix the following checkpatch warning:

CHECK: Prefer kmalloc(sizeof(*buff_mgr_handle)...)
over kmalloc(sizeof(struct buff_mgr_handle)...)

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_buffer_mgr.c