[media] s5p-jpeg: Add missing braces around sizeof
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 16 Aug 2012 11:52:58 +0000 (08:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Oct 2012 23:23:23 +0000 (20:23 -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-jpeg/jpeg-core.c

index bf2d94bb0f6e0109a22e8a87c6fde9ad91c16504..394775ae5774f4d21d98719c3afae2343b658466 100644 (file)
@@ -288,7 +288,7 @@ static int s5p_jpeg_open(struct file *file)
        struct s5p_jpeg_fmt *out_fmt;
        int ret = 0;
 
-       ctx = kzalloc(sizeof *ctx, GFP_KERNEL);
+       ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
        if (!ctx)
                return -ENOMEM;