mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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>
This commit is contained in:
parent
60ba7c7c26
commit
4a73bb48de
1 changed files with 1 additions and 1 deletions
|
|
@ -1725,7 +1725,7 @@ int ssi_buffer_mgr_init(struct ssi_drvdata *drvdata)
|
|||
struct buff_mgr_handle *buff_mgr_handle;
|
||||
struct device *dev = &drvdata->plat_dev->dev;
|
||||
|
||||
buff_mgr_handle = kmalloc(sizeof(struct buff_mgr_handle), GFP_KERNEL);
|
||||
buff_mgr_handle = kmalloc(sizeof(*buff_mgr_handle), GFP_KERNEL);
|
||||
if (!buff_mgr_handle)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue