linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: linux-media@vger.kernel.org, mchehab@infradead.org,
	andrzej.p@samsung.com, patches@linaro.org
Subject: Re: [PATCH Trivial] [media] s5p-jpeg: Add missing braces around sizeof
Date: Thu, 16 Aug 2012 14:52:54 +0200	[thread overview]
Message-ID: <502CED26.9010705@samsung.com> (raw)
In-Reply-To: <1345117978-3374-1-git-send-email-sachin.kamat@linaro.org>

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

      reply	other threads:[~2012-08-16 12:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-16 11:52 [PATCH Trivial] [media] s5p-jpeg: Add missing braces around sizeof Sachin Kamat
2012-08-16 12:52 ` Sylwester Nawrocki [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=502CED26.9010705@samsung.com \
    --to=s.nawrocki@samsung.com \
    --cc=andrzej.p@samsung.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=patches@linaro.org \
    --cc=sachin.kamat@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).