staging:speakup:i18n.c: Delete tab to indent
PATCH 1/1 staging:speakup:i18n.c: Delete tab to indent
Fixed the issue by using tabs over spaces 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
I forgot to say that this is the second version of the patch: [Patch v2]
sâmbătă, 4 martie 2017, 00:19:48 UTC+2, Tamara Diaconita a scris:
Quoted 27 lines
Fixed the issue by using tabs over spaces 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
Quoted 1 line · Tamara Diaconita
Fixed the issue by using tabs over spaces to indent the code.
This looks like the same change as you proposed before. The newstr needs one more tab in front of it.
Also, the v2 needs to be in the message itself. If you forget it, just send another version of the patch with the v2 in it.
julia
Quoted 29 lines
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
-2@@ -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 ; } --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/20170303221944.10488-1-diaconita.tamara%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Should I change the description and write it as I did in the previous patches?
sâmbătă, 4 martie 2017, 00:19:48 UTC+2, Tamara Diaconita a scris:
Quoted 27 lines
Fixed the issue by using tabs over spaces 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
Quoted 2 lines · Tamara Diaconita
Should I change the description and write it as I did in the previous patches?
Yes.
Also, it looks like your subject line is not correct. Normally one does not put .c at the end. Normally there is a space after each :. Use git log --oneline on the affected file to see what others have done for this driver and do the same (there is no deterministic algorithm to choose the right thing).
julia
Quoted 39 lines
sâmbătă, 4 martie 2017, 00:19:48 UTC+2, Tamara Diaconita a scris:
Fixed the issue by using tabs over spaces to indent the code. Signed-off-by: Tamara Diaconita <[email protected]> --- drivers/staging/speakup/i18n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/speakup/i18n.c b/drivers/staging/speakup/i18n.c index 1a3e348..3e5f012 100644 --- a/drivers/staging/speakup/i18n.c +++ b/drivers/staging/speakup/i18n.c @@ -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; } -- 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 visithttps://groups.google.com/d/msgid/outreachy-kernel/e1877054-d9f5-4389-9dbb- f158d0a8b7df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.