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>
This commit is contained in:
parent
472aba5f91
commit
e996f9de85
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue