From: Jinpeng Cui <cui.jinpeng2@xxxxxxxxxx> Rturn value directly from configfs_register_subsystem() instead of getting value from redundant variable ret. Reported-by: Zeal Robot <zealci@xxxxxxxxxx> Signed-off-by: Jinpeng Cui <cui.jinpeng2@xxxxxxxxxx> --- drivers/usb/gadget/configfs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c index 3a6b4926193e..070872d1ae70 100644 --- a/drivers/usb/gadget/configfs.c +++ b/drivers/usb/gadget/configfs.c @@ -1671,12 +1671,9 @@ EXPORT_SYMBOL_GPL(unregister_gadget_item); static int __init gadget_cfs_init(void) { - int ret; - config_group_init(&gadget_subsys.su_group); - ret = configfs_register_subsystem(&gadget_subsys); - return ret; + return configfs_register_subsystem(&gadget_subsys); } module_init(gadget_cfs_init); -- 2.25.1