summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRahul Bedarkar <rahulbedarkar89@gmail.com>2014-10-01 22:41:36 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-10-20 10:29:26 +0800
commit748d9dd1b1b6cd88a0dbc0b3dd49fb51dcb1c9de (patch)
treeb74e554eb68b0695368359ca794ed4d04d87a3ed
parent5d096c3b2609d894d93348e4df90a720f8645dd1 (diff)
staging: dgap: remove unused variable 'orig_count'
This patch fixes sparse warning warning: variable ‘orig_count’ set but not used [-Wunused-but-set-variable] Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/dgap/dgap.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c
index d0be1cebf5a9..2f2aa59600e5 100644
--- a/drivers/staging/dgap/dgap.c
+++ b/drivers/staging/dgap/dgap.c
@@ -2629,7 +2629,6 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf,
char __iomem *vaddr;
u16 head, tail, tmask, remain;
int bufcount, n;
- int orig_count;
ulong lock_flags;
if (!tty)
@@ -2650,13 +2649,6 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf,
if (!count)
return 0;
- /*
- * Store original amount of characters passed in.
- * This helps to figure out if we should ask the FEP
- * to send us an event when it has more space available.
- */
- orig_count = count;
-
spin_lock_irqsave(&ch->ch_lock, lock_flags);
/* Get our space available for the channel from the board */