[Trivial,media] s5p-jpeg: Add missing braces around sizeof
Commit Message
Silences the following warning:
WARNING: sizeof *ctx should be sizeof(*ctx)
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Comments
On 08/16/2012 01:52 PM, Sachin Kamat wrote:
> Silences the following warning:
> WARNING: sizeof *ctx should be sizeof(*ctx)
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Thanks Sachin, I've added this to my tree for v3.7.
> ---
> 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 72c3e52..ae916cd 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;
Regards,
Sylwester
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
@@ -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;