staging: speakup: kobjects: Rearrange if statement
PATCH 1/1 staging: speakup: kobjects: Rearrange if statement
Fixed the checkpath.pl issue:
CHECK: line over 80 characters.
Put a part of the if statement on a new line to have less than 80 characters.
--- drivers/staging/speakup/kobjects.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/speakup/kobjects.c +4 -2
@@ -106,7 +106,8 @@ static void report_char_chartab_status(int reset, int received, int used,* This is called when a user changes the characters or chartab parameters. */ static ssize_t chars_chartab_store (struct kobject *kobj, -struct kobj_attribute *attr,const char *buf,size_t count) +struct kobj_attribute *attr, +const char *buf,size_t count) {char *cp = (char *)buf;char *end = cp + count;/* the null at the end of the buffer */
@@ -404,7 +405,8 @@ static ssize_t synth_store(struct kobject *kobj, struct kobj_attribute *attr,* This is called when text is sent to the synth via the synth_direct file. */ static ssize_t synth_direct_store (struct kobject *kobj, -struct kobj_attribute *attr,const char *buf,size_t count) +struct kobj_attribute *attr, +const char *buf,size_t count) {u_char tmp[256 ];int len;
Signature · 1 line
2.9.3
Quoted 7 lines · Tamara Diaconita
Fixed the checkpath.pl issue:
CHECK: line over 80 characters.Put a part of the if statement on a new line to have less than 80 characters.
Signed-off-by Tamara Diaconita <[email protected]>
Hmm, there is no if in this patch.
Quoted 37 lines
--- drivers/staging/speakup/kobjects.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)drivers/staging/speakup/kobjects.c +4
-3@@ -106,7 +106,8 @@ static void report_char_chartab_status(int reset, int received, int used,* This is called when a user changes the characters or chartab parameters. */ static ssize_t chars_chartab_store (struct kobject *kobj, -struct kobj_attribute *attr,const char *buf,size_t count) +struct kobj_attribute *attr, +const char *buf,size_t count) {char *cp = (char *)buf;char *end = cp + count;/* the null at the end of the buffer */ @@ -404,7 +405,8 @@ static ssize_t synth_store(struct kobject *kobj, struct kobj_attribute *attr,* This is called when text is sent to the synth via the synth_direct file. */ static ssize_t synth_direct_store (struct kobject *kobj, -struct kobj_attribute *attr,const char *buf,size_t count) +struct kobj_attribute *attr, +const char *buf,size_t count) {u_char tmp[256 ];int len; --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/20170307091646.13717-1-diaconita.tamara%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Quoted 9 lines · Tamara Diaconita
Fixed the checkpath.pl issue:
CHECK: line over 80 characters.Put a part of the if statement on a new line to have less than 80 characters.
Signed-off-by Tamara Diaconita <[email protected]>--- drivers/staging/speakup/kobjects.c | 6 ++++--
You have a bunch of patches on the same file. In this case they need to be in a series, even if they don't overlap. Otherwise, the recipient has to spend time figuring out that they don't overlap.
julia
Quoted 36 lines
1 file changed, 4 insertions(+), 2 deletions(-)drivers/staging/speakup/kobjects.c +4
-3@@ -106,7 +106,8 @@ static void report_char_chartab_status(int reset, int received, int used,* This is called when a user changes the characters or chartab parameters. */ static ssize_t chars_chartab_store (struct kobject *kobj, -struct kobj_attribute *attr,const char *buf,size_t count) +struct kobj_attribute *attr, +const char *buf,size_t count) {char *cp = (char *)buf;char *end = cp + count;/* the null at the end of the buffer */ @@ -404,7 +405,8 @@ static ssize_t synth_store(struct kobject *kobj, struct kobj_attribute *attr,* This is called when text is sent to the synth via the synth_direct file. */ static ssize_t synth_direct_store (struct kobject *kobj, -struct kobj_attribute *attr,const char *buf,size_t count) +struct kobj_attribute *attr, +const char *buf,size_t count) {u_char tmp[256 ];int len; --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/20170307091646.13717-1-diaconita.tamara%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Ok, I will put them in a set.
marți, 7 martie 2017, 18:11:01 UTC+2, Julia Lawall a scris:
Quoted 69 lines · Tamara Diaconita
Quoted 10 lines
Fixed the checkpath.pl issue:
CHECK: line over 80 characters.Put a part of the if statement on a new line to have less than 80 characters.
Signed-off-by Tamara Diaconita <[email protected] <javascript:>>---
drivers/staging/speakup/kobjects.c | 6 ++++--You have a bunch of patches on the same file. In this case they need to be in a series, even if they don't overlap. Otherwise, the recipient has to spend time figuring out that they don't overlap.
julia
Review
Quoted 3 lines
1 file changed, 4 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/staging/speakup/kobjects.cdrivers/staging/speakup/kobjects.c static void report_char_chartab_status(int reset,
Quoted 4 lines
index cd8eb12..a032932 100644
drivers/staging/speakup/kobjects.c +0
-0@@ -106,7 +106,8 @@ static void report_char_chartab_status(int reset,int received, int used,
drivers/staging/speakup/kobjects.c static void report_char_chartab_status(int reset, · line 106
Quoted 1 line
drivers/staging/speakup/kobjects.c +0
-0* This is called when a user changes the characters or chartab parameters.
drivers/staging/speakup/kobjects.c static void report_char_chartab_status(int reset, int received, int used,
Quoted 3 lines
drivers/staging/speakup/kobjects.c +0
-1*/ static ssize_t chars_chartab_store(struct kobject *kobj, - struct kobj_attribute *attr, constchar *buf,
size_tcount)drivers/staging/speakup/kobjects.c static ssize_t synth_store(struct kobject *kobj,
Quoted 6 lines
drivers/staging/speakup/kobjects.c +2
-0+struct kobj_attribute *attr, + const char *buf, size_t count) { char *cp = (char *)buf;char *end = cp + count;/* the null at the end of the buffer */ @@ -404,7 +405,8 @@ static ssize_t synth_store(struct kobject *kobj,struct
kobj_attribute*attr,drivers/staging/speakup/kobjects.c static ssize_t synth_store(struct kobject *kobj, · line 405
Quoted 1 line
drivers/staging/speakup/kobjects.c +0
-0* This is called when text is sent to the synth via the synth_direct file.
drivers/staging/speakup/kobjects.c static ssize_t synth_store(struct kobject *kobj, struct kobj_attribute *attr,
Quoted 3 lines
drivers/staging/speakup/kobjects.c +0
-1*/ static ssize_t synth_direct_store(struct kobject *kobj, - struct kobj_attribute *attr, constchar *buf,
size_tcount)Quoted 10 lines
drivers/staging/speakup/kobjects.c +2
-0+struct kobj_attribute *attr, + const char *buf, size_t count) { u_char tmp[256];int len;Signature · 4 lines
2.9.3 -- You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected] <javascript:>.
Quoted 1 line
To post to this group, send email to [email protected]
<javascript:>.
Quoted 1 line
To view this discussion on the web visit
Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.