Delete tab to indent
PATCH 1/1 Delete tab to indent
Deleted a tab to fix the checkpath.pl issue:
CHECK: indent should use tabs where possible.
Deleted an extra tab to indent the code.
--- drivers/staging/speakup/i18n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/speakup/i18n.c +1 -1
@@ -552,7 +552,7 @@ ssize_t spk_msg_set(enum msg_index_t index, char *text, size_t length)if (index >=MSG_FORMATTED_START && index <=MSG_FORMATTED_END && !fmt_validate (speakup_default_msgs[index], - newstr)) { + newstr)) {kfree (newstr);return -EINVAL ; }
Signature · 1 line
2.9.3
Quoted 15 lines · Tamara Diaconita
Deleted a tab to fix the checkpath.pl issue:
CHECK: indent should use tabs where possible.Deleted an extra tab to indent the code.
Signed-off-by Tamara Diaconita <[email protected]>--- drivers/staging/speakup/i18n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/speakup/i18n.c +0
-0
drivers/staging/speakup/i18n.c ssize_t spk_msg_set(enum msg_index_t index, char *text, size_t length) · line 555
Quoted 5 lines
drivers/staging/speakup/i18n.c +1
-1@@ -552,7 +552,7 @@ ssize_t spk_msg_set(enum msg_index_t index, char *text, size_t length)if (index >=MSG_FORMATTED_START && index <=MSG_FORMATTED_END && !fmt_validate (speakup_default_msgs[index], - newstr)) { + newstr)) {
Actually, checkpatch was complaining about the number of spaces in front of newstr, and not the number of tabs. newstr is in the right position in the original code. It just needs to be put into that position using tabs as much as possible.
julia
Quoted 13 lines
drivers/staging/speakup/i18n.c +0
-1kfree (newstr);return -EINVAL ; } --2.9.3
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20170303215557.10077-1-diaconita.tamara%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
I will resend the patch, thank you!
vineri, 3 martie 2017, 23:56:01 UTC+2, Tamara Diaconita a scris:
Quoted 30 lines
Deleted a tab to fix the checkpath.pl issue:
CHECK: indent should use tabs where possible.Deleted an extra tab to indent the code.
Signed-off-by Tamara Diaconita <[email protected]>---
drivers/staging/speakup/i18n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/speakup/i18n.c +1
-1@@ -552,7 +552,7 @@ ssize_t spk_msg_set(enum msg_index_t index, char *text, size_t length)if (index >=MSG_FORMATTED_START && index <=MSG_FORMATTED_END && !fmt_validate (speakup_default_msgs[index], - newstr)) { + newstr)) {kfree (newstr);return -EINVAL ;}Signature · 1 line
2.9.3