diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-08-16 07:52:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-01 19:23:23 -0400 |
commit | b5146c96d1795ed75bb90dc4d3189b2c4206c56d (patch) | |
tree | 35d40be9d5c2c2f80cdc318180d5cb8163b1a249 /drivers/media/platform | |
parent | 9356ac762f85e4e769cc1cc1ae57b9807648a6c8 (diff) |
[media] s5p-jpeg: Add missing braces around sizeof
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>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
288 | struct s5p_jpeg_fmt *out_fmt; | 288 | struct s5p_jpeg_fmt *out_fmt; |
289 | int ret = 0; | 289 | int ret = 0; |
290 | 290 | ||
291 | ctx = kzalloc(sizeof *ctx, GFP_KERNEL); | 291 | ctx = kzalloc(sizeof(*ctx), GFP_KERNEL); |
292 | if (!ctx) | 292 | if (!ctx) |
293 | return -ENOMEM; | 293 | return -ENOMEM; |
294 | 294 | ||