From: Sachin Kamat Date: Thu, 16 Aug 2012 11:52:58 +0000 (-0300) Subject: [media] s5p-jpeg: Add missing braces around sizeof X-Git-Tag: v3.7-rc2~24^2~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5146c96d1795ed75bb90dc4d3189b2c4206c56d;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [media] s5p-jpeg: Add missing braces around sizeof Silences the following warning: WARNING: sizeof *ctx should be sizeof(*ctx) Signed-off-by: Sachin Kamat Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index bf2d94b..394775a 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -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;