[media] s5p-mfc: Add missing braces around sizeof

Silences the following warnings:
WARNING: sizeof *ctx should be sizeof(*ctx)
WARNING: sizeof *dev should be sizeof(*dev)

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Sachin Kamat 2012-08-17 03:22:55 -03:00 committed by Mauro Carvalho Chehab
parent 26ee7f4702
commit bae061b46e
1 changed files with 2 additions and 2 deletions

View File

@ -649,7 +649,7 @@ static int s5p_mfc_open(struct file *file)
return -ERESTARTSYS; return -ERESTARTSYS;
dev->num_inst++; /* It is guarded by mfc_mutex in vfd */ dev->num_inst++; /* It is guarded by mfc_mutex in vfd */
/* Allocate memory for context */ /* Allocate memory for context */
ctx = kzalloc(sizeof *ctx, GFP_KERNEL); ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (!ctx) { if (!ctx) {
mfc_err("Not enough memory\n"); mfc_err("Not enough memory\n");
ret = -ENOMEM; ret = -ENOMEM;
@ -961,7 +961,7 @@ static int s5p_mfc_probe(struct platform_device *pdev)
int ret; int ret;
pr_debug("%s++\n", __func__); pr_debug("%s++\n", __func__);
dev = devm_kzalloc(&pdev->dev, sizeof *dev, GFP_KERNEL); dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL);
if (!dev) { if (!dev) {
dev_err(&pdev->dev, "Not enough memory for MFC device\n"); dev_err(&pdev->dev, "Not enough memory for MFC device\n");
return -ENOMEM; return -ENOMEM;