diff options
author | Marek Belisko <marek.belisko@open-nandra.com> | 2012-08-08 22:14:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-13 19:19:23 -0700 |
commit | e996f9de8534522a4ab0472e19f214cf3c7ca863 (patch) | |
tree | f8504eca059c184ce8fd6f7d5b58252410f3c3a4 /drivers/staging/ccg | |
parent | 472aba5f91fd6413c9c75e71366f133aa8c7f2f2 (diff) | |
download | linux-e996f9de8534522a4ab0472e19f214cf3c7ca863.tar.bz2 |
staging:ccg: Fix missing brackets for sizeof (found by sparse).
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>
Diffstat (limited to 'drivers/staging/ccg')
-rw-r--r-- | drivers/staging/ccg/ccg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ccg/ccg.c b/drivers/staging/ccg/ccg.c index 6a7aab8d9bf5..81ac6bbba55f 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; |