Skip to content

Commit

Permalink
staging:ccg: Fix missing brackets for sizeof (found by sparse).
Browse files Browse the repository at this point in the history
Fix following:
WARNING: sizeof fsg should be sizeof(fsg)
+	memset(&fsg, 0, sizeof fsg);

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Reviewed-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Marek Belisko authored and Greg Kroah-Hartman committed Aug 14, 2012
1 parent 472aba5 commit e996f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ccg/ccg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e996f9d

Please sign in to comment.