2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08: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:
Gilad Ben-Yossef 2017-11-13 14:45:30 +00:00 committed by Greg Kroah-Hartman
parent ead5f963c0
commit 309700da48

View File

@ -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)