Skip to contentSkip to conversation

staging: speakup: line over 80 characters

PATCH In review Payal Kshirsagar 2 participants 3 messages Mar 20, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: speakup: line over 80 characters

Fix line over 80 characters issue of file
drivers/staging/speakup/kobjects.c

---
 drivers/staging/speakup/kobjects.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/speakup/kobjects.c +2 -2
index 11c704b..fbd09c7 100644
@@ -154,7 +154,7 @@ static ssize_t chars_chartab_store(struct kobject *kobj,
 			continue;
 		}
 
-		/* Do not replace with kstrtoul: here we need temp to be updated */
+/* Do not replace with kstrtoul: here we need temp to be updated */
 		index = simple_strtoul(cp, &temp, 10);
 		if (index > 255) {
 			rejected++;
@@ -788,7 +788,7 @@ static ssize_t message_store_helper(const char *buf, size_t count,
 			continue;
 		}
 
-		/* Do not replace with kstrtoul: here we need temp to be updated */
+/* Do not replace with kstrtoul: here we need temp to be updated */
 		index = simple_strtoul(cp, &temp, 10);
 
 		while ((temp < linefeed) && (*temp == ' ' || *temp == '\t'))
Signature · 1 line
2.7.4
#1 lore raw
Quoted 2 lines · Payal Kshirsagar

Fix line over 80 characters issue of file
drivers/staging/speakup/kobjects.c

Your kernel is not up to date. Someone else has already made thing change. It was done in a different way, because comments in the middle of a function should not be moved out to the left side.

julia

Quoted 38 lines
---
 drivers/staging/speakup/kobjects.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/speakup/kobjects.c +2 -3
index 11c704b..fbd09c7 100644
@@ -154,7 +154,7 @@ static ssize_t chars_chartab_store(struct kobject *kobj,
 			continue;
 		}
 
-		/* Do not replace with kstrtoul: here we need temp to be updated */
+/* Do not replace with kstrtoul: here we need temp to be updated */
 		index = simple_strtoul(cp, &temp, 10);
 		if (index > 255) {
 			rejected++;
@@ -788,7 +788,7 @@ static ssize_t message_store_helper(const char *buf, size_t count,
 			continue;
 		}
 
-		/* Do not replace with kstrtoul: here we need temp to be updated */
+/* Do not replace with kstrtoul: here we need temp to be updated */
 		index = simple_strtoul(cp, &temp, 10);
 
 		while ((temp < linefeed) && (*temp == ' ' || *temp == '\t'))
--

2.7.4

--
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/1553089942-7490-1-git-send-email-payal.s.kshirsagar.98%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

#2 lore raw
Quoted 4 lines · Julia Lawall

On Wed, 20 Mar 2019, Payal Kshirsagar wrote:

Quoted 9 lines
Quoted 2 lines

Fix line over 80 characters issue of file
drivers/staging/speakup/kobjects.c

Your kernel is not up to date. Someone else has already made thing change. It was done in a different way, because comments in the middle of a function should not be moved out to the left side.

julia

Yup , Updating
Thanking payal

Quoted 61 lines

Review

Quoted 8 lines
---
 drivers/staging/speakup/kobjects.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/drivers/staging/speakup/kobjects.c

drivers/staging/speakup/kobjects.c static ssize_t chars_chartab_store(struct kobject

Quoted 4 lines

index 11c704b..fbd09c7 100644

drivers/staging/speakup/kobjects.c +0 -0
@@ -154,7 +154,7 @@ static ssize_t chars_chartab_store(struct kobject

*kobj,

drivers/staging/speakup/kobjects.c static ssize_t chars_chartab_store(struct kobject *kobj,

Quoted 4 lines
drivers/staging/speakup/kobjects.c +0 -1
                      continue;
              }
 
-             /* Do not replace with kstrtoul: here we need temp to be

updated */

drivers/staging/speakup/kobjects.c static ssize_t message_store_helper(const char *buf,

Quoted 5 lines
drivers/staging/speakup/kobjects.c +1 -0
+/* Do not replace with kstrtoul: here we need temp to be updated */
              index = simple_strtoul(cp, &temp, 10);
              if (index > 255) {
                      rejected++;
@@ -788,7 +788,7 @@ static ssize_t message_store_helper(const char *buf,

size_t count,

drivers/staging/speakup/kobjects.c static ssize_t chars_chartab_store(struct kobject *kobj,

Quoted 4 lines
drivers/staging/speakup/kobjects.c +0 -1
                      continue;
              }
 
-             /* Do not replace with kstrtoul: here we need temp to be

updated */

drivers/staging/speakup/kobjects.c static ssize_t message_store_helper(const char *buf, size_t count,

Quoted 4 lines
drivers/staging/speakup/kobjects.c +1 -0
+/* Do not replace with kstrtoul: here we need temp to be updated */
              index = simple_strtoul(cp, &temp, 10);
 
              while ((temp < linefeed) && (*temp == ' ' || *temp ==

'\t'))

Quoted 5 lines

--
2.7.4

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 2 lines

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/1553089942-7490-1-git-send-email-payal.s.kshirsagar.98%40gmail.com
.

Quoted 2 lines

For more options, visit https://groups.google.com/d/optout.

--
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/alpine.DEB.2.20.1903201456260.3627%40hadrien
.
For more options, visit https://groups.google.com/d/optout.