* [PATCH] [STYLE]staging:speakup:selection.c Align to parenthesis
@ 2016-11-11 20:04 Walt Feasel
0 siblings, 0 replies; only message in thread
From: Walt Feasel @ 2016-11-11 20:04 UTC (permalink / raw)
To: speakup
Cc: w.d.hubbs, chris, kirk, samuel.thibault, gregkh, devel,
linux-kernel, Walt Feasel
Made suggested modifications from checkpatch in reference
to CHECK: Alignment should match open parenthesis
Additionally add space around operators
Signed-off-by: Walt Feasel <waltfeasel@gmail.com>
---
drivers/staging/speakup/selection.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/speakup/selection.c b/drivers/staging/speakup/selection.c
index aeb2b86..3d15eec 100644
--- a/drivers/staging/speakup/selection.c
+++ b/drivers/staging/speakup/selection.c
@@ -75,7 +75,7 @@ int speakup_set_selection(struct tty_struct *tty)
speakup_clear_selection();
spk_sel_cons = vc_cons[fg_console].d;
dev_warn(tty->dev,
- "Selection: mark console not the same as cut\n");
+ "Selection: mark console not the same as cut\n");
return -EINVAL;
}
@@ -99,7 +99,7 @@ int speakup_set_selection(struct tty_struct *tty)
sel_start = new_sel_start;
sel_end = new_sel_end;
/* Allocate a new buffer before freeing the old one ... */
- bp = kmalloc((sel_end-sel_start)/2+1, GFP_ATOMIC);
+ bp = kmalloc((sel_end - sel_start) / 2 + 1, GFP_ATOMIC);
if (!bp) {
speakup_clear_selection();
return -ENOMEM;
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-11-11 20:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-11 20:04 [PATCH] [STYLE]staging:speakup:selection.c Align to parenthesis Walt Feasel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).