[PATCH 2/2] Staging: speakup: selection: Coding style fixes

From: Tracey Dent
Date: Fri Oct 15 2010 - 23:09:22 EST


Fixed coding style issues using checkpatch.pl

Signed-off-by: Tracey Dent <tdent48227@xxxxxxxxx>
---
drivers/staging/speakup/selection.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/speakup/selection.c b/drivers/staging/speakup/selection.c
index 1b865ff..81cfc80 100644
--- a/drivers/staging/speakup/selection.c
+++ b/drivers/staging/speakup/selection.c
@@ -34,7 +34,7 @@ void speakup_clear_selection(void)
/* does screen address p correspond to character at LH/RH edge of screen? */
static int atedge(const int p, int size_row)
{
- return (!(p % size_row) || !((p + 2) % size_row));
+ return !(p % size_row) || !((p + 2) % size_row);
}

/* constrain v such that v <= u */
@@ -139,9 +139,9 @@ int speakup_paste_selection(struct tty_struct *tty)
}
count = sel_buffer_lth - pasted;
count = min_t(int, count, tty->receive_room);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 31)
tty->ldisc->ops->receive_buf(tty, sel_buffer + pasted, 0, count);
-#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27)
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27)
tty->ldisc.ops->receive_buf(tty, sel_buffer + pasted, 0, count);
#else
tty->ldisc.receive_buf(tty, sel_buffer + pasted, 0, count);
--
1.7.3.1.104.gc752e

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/