mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
staging: ccree: alloc by instance not type
Allocation by instance is preferred to allocation by type. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ead5f963c0
commit
309700da48
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ void ssi_sram_mgr_fini(struct ssi_drvdata *drvdata)
|
|||
int ssi_sram_mgr_init(struct ssi_drvdata *drvdata)
|
||||
{
|
||||
/* Allocate "this" context */
|
||||
drvdata->sram_mgr_handle = kzalloc(sizeof(struct ssi_sram_mgr_ctx),
|
||||
drvdata->sram_mgr_handle = kzalloc(sizeof(*drvdata->sram_mgr_handle),
|
||||
GFP_KERNEL);
|
||||
|
||||
if (!drvdata->sram_mgr_handle)
|
||||
|
|
|
|||
Loading…
Reference in a new issue