Skip to contentSkip to conversation

staging:speakup:selection.c Align to parenthesis

PATCH New Walt Feasel 1 participant 1 message Nov 11, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging:speakup:selection.c Align to parenthesis

Made suggested modifications from checkpatch in reference to CHECK: Alignment should match open parenthesis
Additionally add space around operators

---
 drivers/staging/speakup/selection.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/speakup/selection.c +2 -2
index aeb2b86..3d15eec 100644
@@ -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;
Signature · 1 line
2.1.4