staging/speakup/speakup_decext.c
PATCH 1/1 staging/speakup/speakup_decext.c
removed line over 80 characters warning
Signed-off-by Gamze POLAT <[email protected]>
--- drivers/staging/speakup/speakup_decext.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/speakup/speakup_decext.c +4 -2
@@ -207,10 +207,12 @@ static void do_catch_up(struct spk_synth *synth)if (time_after_eq (jiffies, jiff_max)) {if (!in_escape)spk_serial_out (PROCSPEECH ); -spin_lock_irqsave (&speakup_info.spinlock, flags); +spin_lock_irqsave (&speakup_info.spinlock, flags + ); jiffy_delta_val = jiffy_delta->u.n.value; delay_time_val = delay_time->u.n.value; -spin_unlock_irqrestore (&speakup_info.spinlock, flags); +spin_unlock_irqrestore (&speakup_info.spinlock, + flags);schedule_timeout (msecs_to_jiffies (delay_time_val)); jiff_max = jiffies + jiffy_delta_val;
Signature · 1 line
2.1.0
Quoted 12 lines · Gamze POLAT
removed line over 80 characters warning
Signed-off-by Gamze POLAT <[email protected]>--- drivers/staging/speakup/speakup_decext.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)drivers/staging/speakup/speakup_decext.c +0
-0
drivers/staging/speakup/speakup_decext.c static void do_catch_up(struct spk_synth *synth) · line 211
Quoted 6 lines
drivers/staging/speakup/speakup_decext.c +2
-1@@ -207,10 +207,12 @@ static void do_catch_up(struct spk_synth *synth)if (time_after_eq (jiffies, jiff_max)) {if (!in_escape)spk_serial_out (PROCSPEECH ); -spin_lock_irqsave (&speakup_info.spinlock, flags); +spin_lock_irqsave (&speakup_info.spinlock, flags + );
Normally, one does not put ); on a line by itself. You can put a newline before flags. Look around at some other code in this driver to see how this code deals with this problem.
drivers/staging/speakup/speakup_decext.c static void do_catch_up(struct spk_synth *synth) · line 215
Quoted 5 lines
drivers/staging/speakup/speakup_decext.c +2
-1jiffy_delta_val = jiffy_delta->u.n.value; delay_time_val = delay_time->u.n.value; -spin_unlock_irqrestore (&speakup_info.spinlock, flags); +spin_unlock_irqrestore (&speakup_info.spinlock, + flags);
This looc better, but you could consider lining up flags with the & on the line above, or if you prefer to have only leading tabs, add one more tab so that flags is past the (.
julia
Quoted 13 lines
drivers/staging/speakup/speakup_decext.c +0
-0schedule_timeout (msecs_to_jiffies (delay_time_val)); jiff_max = jiffies + jiffy_delta_val;Signature · 8 lines
2.1.0 -- 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/1424372722-4957-1-git-send-email-gamzepolat94%40gmail.com. For more options, visit https://groups.google.com/d/optout.