mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jesper Juhl <jj@chaosbits.net>
To: Marek Belisko <marek.belisko@open-nandra.com>
Cc: gregkh@linuxfoundation.org, andrzej.p@samsung.com,
	lockwood@android.com, devel@driverdev.osuosl.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging:ccg: Fix missing brackets for sizeof (found by sparse).
Date: Wed, 8 Aug 2012 22:22:23 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.2.00.1208082221270.10061@swampdragon.chaosbits.net> (raw)
In-Reply-To: <1344456878-968-1-git-send-email-marek.belisko@open-nandra.com>

On Wed, 8 Aug 2012, Marek Belisko wrote:

> Fix following:
> WARNING: sizeof fsg should be sizeof(fsg)
> +	memset(&fsg, 0, sizeof fsg);
> 
> Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
> ---
>  drivers/staging/ccg/ccg.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/ccg/ccg.c b/drivers/staging/ccg/ccg.c
> index 6a7aab8..81ac6bb 100644
> --- a/drivers/staging/ccg/ccg.c
> +++ b/drivers/staging/ccg/ccg.c
> @@ -728,7 +728,7 @@ static int mass_storage_function_init(struct ccg_usb_function *f,
>  	struct fsg_common *common;
>  	int err;
>  
> -	memset(&fsg, 0, sizeof fsg);
> +	memset(&fsg, 0, sizeof(fsg));
>  	fsg.nluns = 1;
>  	fsg.luns[0].removable = 1;
>  	fsg.vendor_name = iManufacturer;
> 
Looks good to me.

Reviewed-by: Jesper Juhl <jj@chaosbits.net>


-- 
Jesper Juhl <jj@chaosbits.net>       http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.


  reply	other threads:[~2012-08-08 20:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-08 20:14 Marek Belisko
2012-08-08 20:22 ` Jesper Juhl [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-08-06 21:11 Marek Belisko

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=alpine.LNX.2.00.1208082221270.10061@swampdragon.chaosbits.net \
    --to=jj@chaosbits.net \
    --cc=andrzej.p@samsung.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lockwood@android.com \
    --cc=marek.belisko@open-nandra.com \
    /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

all inboxes | Powered by JetHome®