Fixed an indentation error
PATCH 1/1 Fixed an indentation error
--- drivers/usb/gadget/configfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/configfs.c +2 -2
@@ -1217,8 +1217,8 @@ static void purge_configs_funcs(struct gadget_info *gi)list_move_tail (&f->list, &cfg->func_list);if (f->unbind) {dev_dbg (&gi->cdev.gadget->dev, -"unbind function '%s'/%p\n" , - f->name, f); +"unbind function '%s'/%p\n" , + f->name, f); f->unbind (c, f); } }
Quoted 1 line · Parth Y Shah
Signed-off-by Parth Y Shah <[email protected]>
-ENOCHANGELOG
Why do you think this is an error?
Why is the dev_dbg useful at all?
drivers/usb/gadget/configfs.c
Quoted 1 line
drivers/usb/gadget/configfs.c +0
-0
[]
drivers/usb/gadget/configfs.c static void purge_configs_funcs(struct gadget_info *gi) · line 1224
Quoted 11 lines
drivers/usb/gadget/configfs.c +2
-2@@ -1217,8 +1217,8 @@ static void purge_configs_funcs(struct gadget_info *gi)list_move_tail (&f->list, &cfg->func_list);if (f->unbind) {dev_dbg (&gi->cdev.gadget->dev, -"unbind function '%s'/%p\n" , - f->name, f); +"unbind function '%s'/%p\n" , + f->name, f); f->unbind (c, f); } }
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Greg KH
maintainerQuoted 10 lines · Parth Y Shah
Signed-off-by Parth Y Shah <[email protected]>--- drivers/usb/gadget/configfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/usb/gadget/configfs.c +0
-0
drivers/usb/gadget/configfs.c static void purge_configs_funcs(struct gadget_info *gi) · line 1221
Quoted 7 lines
drivers/usb/gadget/configfs.c +2
-2@@ -1217,8 +1217,8 @@ static void purge_configs_funcs(struct gadget_info *gi)list_move_tail (&f->list, &cfg->func_list);if (f->unbind) {dev_dbg (&gi->cdev.gadget->dev, -"unbind function '%s'/%p\n" , - f->name, f); +"unbind function '%s'/%p\n" , + f->name, f);
I see no "error" with the original code here, please explain why this needs to be changed.
thanks,
greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
PATCH v2 1/1 Fixed a checkpatch error
In reply to Joe PerchesERROR: code indent should use tabs where possible
Here, spaces are replaced by a tab in 2 lines.
---
Changes since v1:
* Updated commit description
* Removed one extra tab and replaced spaces with tab to resolve checkpatch error
drivers/usb/gadget/configfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/configfs.c +2 -2
@@ -1217,8 +1217,8 @@ static void purge_configs_funcs(struct gadget_info *gi)list_move_tail (&f->list, &cfg->func_list);if (f->unbind) {dev_dbg (&gi->cdev.gadget->dev, -"unbind function '%s'/%p\n" , - f->name, f); +"unbind function '%s'/%p\n" , + f->name, f); f->unbind (c, f); } }
Greg KH
maintainerRe: [PATCH v2] Fixed a checkpatch error
Quoted 5 lines · Parth Y Shah
ERROR: code indent should use tabs where possible
Here, spaces are replaced by a tab in 2 lines.
Signed-off-by Parth Y Shah <[email protected]>
Your subject line needs work, please see how other subject lines are composed for this subsystem.
Also note, please do not use anything but the drivers/staging/ area of the kernel for beginning "I'm going to do checkpatch cleanups" type of "learning to get changes into the kernel" work. That is a great place to start with this, not in other subsystems where you might have reviewers who do not care so much about whitespace cleanups like this.
So please learn the process there, and when you have it all working well, then you could move on to other subsystems and areas of the kernel, like this one, if you want to.
thanks,
greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html