staging:ccg: Fix missing brackets for sizeof (found by sparse).
authorMarek Belisko <marek.belisko@open-nandra.com>
Wed, 8 Aug 2012 20:14:38 +0000 (22:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Aug 2012 02:19:23 +0000 (19:19 -0700)
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>
drivers/staging/ccg/ccg.c

index 6a7aab8..81ac6bb 100644 (file)
@@ -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;