From: Tracey Dent <tdent48227@gmail.com>
To: greg@kroah.com
Cc: linux-kernel@vger.kernel.org, Tracey Dent <tdent48227@gmail.com>
Subject: [PATCH 2/2] Staging: speakup: selection: Coding style fixes
Date: Fri, 15 Oct 2010 23:08:47 -0400 [thread overview]
Message-ID: <1287198527-1696-2-git-send-email-tdent48227@gmail.com> (raw)
In-Reply-To: <1287198527-1696-1-git-send-email-tdent48227@gmail.com>
Fixed coding style issues using checkpatch.pl
Signed-off-by: Tracey Dent <tdent48227@gmail.com>
---
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
next prev parent reply other threads:[~2010-10-16 3:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-16 3:08 [PATCH 1/2] Staging: speakup: main: Coding stlye fixes Tracey Dent
2010-10-16 3:08 ` Tracey Dent [this message]
2010-10-19 17:07 ` Greg KH
2010-10-19 21:32 ` Tracey Dent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1287198527-1696-2-git-send-email-tdent48227@gmail.com \
--to=tdent48227@gmail.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome