[media] s5p-fimc: Add missing braces around sizeof
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 17 Aug 2012 06:28:27 +0000 (03:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Oct 2012 23:26:19 +0000 (20:26 -0300)
Silences the following warning:
WARNING: sizeof *ctx should be sizeof(*ctx)

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>
drivers/media/platform/s5p-fimc/fimc-capture.c
drivers/media/platform/s5p-fimc/fimc-m2m.c

index 6792fd4236c6f0af224d2e856354ed4f577ae3bb..d7df8fb14889de9f1861755af1703c3e3aeecfde 100644 (file)
@@ -1596,7 +1596,7 @@ static int fimc_register_capture_device(struct fimc_dev *fimc,
        struct vb2_queue *q;
        int ret = -ENOMEM;
 
-       ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
+       ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
        if (!ctx)
                return -ENOMEM;
 
index 51fc04c2f27cd062168c39061195c45b6fd4effa..6b71d953fd15b1a533f90a39d0eb0b9ed112b17c 100644 (file)
@@ -659,7 +659,7 @@ static int fimc_m2m_open(struct file *file)
        if (fimc->vid_cap.refcnt > 0)
                goto unlock;
 
-       ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
+       ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
        if (!ctx) {
                ret = -ENOMEM;
                goto unlock;