From: Sachin Kamat Date: Thu, 16 Aug 2012 11:52:58 +0000 (-0300) Subject: [media] s5p-jpeg: Add missing braces around sizeof X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b5146c96d1795ed75bb90dc4d3189b2c4206c56d;p=openwrt%2Fstaging%2Fblogic.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 bf2d94bb0f6e..394775ae5774 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;