All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Delete tab to indent
@ 2017-03-03 21:55 Tamara Diaconita
  2017-03-03 22:02 ` [Outreachy kernel] " Julia Lawall
  2017-03-03 22:08 ` Tamara Diaconita
  0 siblings, 2 replies; 3+ messages in thread
From: Tamara Diaconita @ 2017-03-03 21:55 UTC (permalink / raw)
  To: chris, kirk, samuel.thibault, gregkh, outreachy-kernel; +Cc: 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 <diaconita.tamara@gmail.com>
---
 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



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Outreachy kernel] [PATCH] Delete tab to indent
  2017-03-03 21:55 [PATCH] Delete tab to indent Tamara Diaconita
@ 2017-03-03 22:02 ` Julia Lawall
  2017-03-03 22:08 ` Tamara Diaconita
  1 sibling, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2017-03-03 22:02 UTC (permalink / raw)
  To: Tamara Diaconita
  Cc: chris, kirk, samuel.thibault, gregkh, outreachy-kernel, Tamara Diaconita



On Fri, 3 Mar 2017, Tamara Diaconita wrote:

> 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 <diaconita.tamara@gmail.com>
> ---
>  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)) {

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

>  				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 outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> 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.
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Delete tab to indent
  2017-03-03 21:55 [PATCH] Delete tab to indent Tamara Diaconita
  2017-03-03 22:02 ` [Outreachy kernel] " Julia Lawall
@ 2017-03-03 22:08 ` Tamara Diaconita
  1 sibling, 0 replies; 3+ messages in thread
From: Tamara Diaconita @ 2017-03-03 22:08 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: chris, kirk, samuel.thibault, gregkh, diaconita.tamara


[-- Attachment #1.1: Type: text/plain, Size: 1167 bytes --]

I will resend the patch, thank you!

vineri, 3 martie 2017, 23:56:01 UTC+2, Tamara Diaconita a scris:
>
> 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 <diaconita.tamara@gmail.com> 
> --- 
>  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 
>
>

[-- Attachment #1.2: Type: text/html, Size: 2330 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-03 22:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-03 21:55 [PATCH] Delete tab to indent Tamara Diaconita
2017-03-03 22:02 ` [Outreachy kernel] " Julia Lawall
2017-03-03 22:08 ` Tamara Diaconita

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.