media: staging: media: zoran: fix kzalloc style

Prefer kzalloc(sizeof(*prt)...) over kzalloc(sizeof(struct.../

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Corentin Labbe 2021-05-18 14:41:12 +02:00 коммит произвёл Mauro Carvalho Chehab
Родитель 87c5d693f9
Коммит b8c8c4959c
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -361,7 +361,7 @@ static int zr36016_setup(struct videocodec *codec)
return -ENOSPC;
}
//mem structure init
ptr = kzalloc(sizeof(struct zr36016), GFP_KERNEL);
ptr = kzalloc(sizeof(*ptr), GFP_KERNEL);
codec->data = ptr;
if (!ptr)
return -ENOMEM;

Просмотреть файл

@ -754,7 +754,7 @@ static int zr36050_setup(struct videocodec *codec)
return -ENOSPC;
}
//mem structure init
ptr = kzalloc(sizeof(struct zr36050), GFP_KERNEL);
ptr = kzalloc(sizeof(*ptr), GFP_KERNEL);
codec->data = ptr;
if (!ptr)
return -ENOMEM;