Skip to contentSkip to conversation

Delete tab to indent

PATCH In review Tamara Diaconita 2 participants 3 messages Mar 3, 2017 Staging

lore
Share & tools
lore
#0 lore raw

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
index 1a3e348..3e5f012 100644
@@ -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
#1 lore raw
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.

---
 drivers/staging/speakup/i18n.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/speakup/i18n.c +0 -0
index 1a3e348..3e5f012 100644

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 -1
 				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/20170303215557.10077-1-diaconita.tamara%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

#2 lore raw
In reply to Tamara Diaconita

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.

---

 drivers/staging/speakup/i18n.c | 2 +- 
 1 file changed, 1 insertion(+), 1 deletion(-) 
drivers/staging/speakup/i18n.c +1 -1
index 1a3e348..3e5f012 100644 
@@ -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