Skip to contentSkip to conversation

usb: gadget: f_mass_storage: Remove obsolete version log

PATCH New Fabio Estevam 1 participant 1 message Jul 21 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: gadget: f_mass_storage: Remove obsolete version log

The mass-storage function prints the following message whenever a function instance is allocated:

Mass Storage Function, version: 2009/09/11

The hard-coded date does not identify the running kernel or provide useful diagnostic information.

Remove the message and the unused version definition.

---
 drivers/usb/gadget/function/f_mass_storage.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/usb/gadget/function/f_mass_storage.c +0 -3
index b7b06cb79ff5..a50743caf083 100644
@@ -203,7 +203,6 @@
 /*------------------------------------------------------------------------*/
 
 #define FSG_DRIVER_DESC		"Mass Storage Function"
-#define FSG_DRIVER_VERSION	"2009/09/11"
 
 static const char fsg_string_interface[] = "Mass Storage";
 
@@ -3513,8 +3512,6 @@ static struct usb_function_instance *fsg_alloc_inst(void)
 	if (rc)
 		goto release_common;
 
-	pr_info(FSG_DRIVER_DESC ", version: " FSG_DRIVER_VERSION "\n");
-
 	memset(&config, 0, sizeof(config));
 	config.removable = true;
 	rc = fsg_common_create_lun(opts->common, &config, 0, "lun.0",
Signature · 1 line
2.43.0