You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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:
committed by
Greg Kroah-Hartman
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;
|
||||
|
||||
Reference in New Issue
Block a user