memset sets the entire data structure to zero, so no need to zero initialize its field again. Signed-off-by: Roger Quadros <roger.quadros@xxxxxxxxx> --- drivers/usb/gadget/f_mass_storage.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index 60b4df9..d3c00e6 100644 --- a/drivers/usb/gadget/f_mass_storage.c +++ b/drivers/usb/gadget/f_mass_storage.c @@ -2775,7 +2775,6 @@ static struct fsg_common *fsg_common_init(struct fsg_common *common, common->free_storage_on_release = 1; } else { memset(common, 0, sizeof *common); - common->free_storage_on_release = 0; } common->ops = cfg->ops; -- 1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html