Commit 26ee7f47 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mauro Carvalho Chehab

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

Silences the following warning:
WARNING: sizeof *ctx should be sizeof(*ctx)
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 25422781
...@@ -1596,7 +1596,7 @@ static int fimc_register_capture_device(struct fimc_dev *fimc, ...@@ -1596,7 +1596,7 @@ static int fimc_register_capture_device(struct fimc_dev *fimc,
struct vb2_queue *q; struct vb2_queue *q;
int ret = -ENOMEM; int ret = -ENOMEM;
ctx = kzalloc(sizeof *ctx, GFP_KERNEL); ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (!ctx) if (!ctx)
return -ENOMEM; return -ENOMEM;
......
...@@ -659,7 +659,7 @@ static int fimc_m2m_open(struct file *file) ...@@ -659,7 +659,7 @@ static int fimc_m2m_open(struct file *file)
if (fimc->vid_cap.refcnt > 0) if (fimc->vid_cap.refcnt > 0)
goto unlock; goto unlock;
ctx = kzalloc(sizeof *ctx, GFP_KERNEL); ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (!ctx) { if (!ctx) {
ret = -ENOMEM; ret = -ENOMEM;
goto unlock; goto unlock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment