Browse Source

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>
Rahul Bedarkar 11 years ago
parent
commit
748d9dd1b1
1 changed files with 0 additions and 8 deletions
  1. 0 8
      drivers/staging/dgap/dgap.c

+ 0 - 8
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;
 	char __iomem *vaddr;
 	u16 head, tail, tmask, remain;
 	u16 head, tail, tmask, remain;
 	int bufcount, n;
 	int bufcount, n;
-	int orig_count;
 	ulong lock_flags;
 	ulong lock_flags;
 
 
 	if (!tty)
 	if (!tty)
@@ -2650,13 +2649,6 @@ static int dgap_tty_write(struct tty_struct *tty, const unsigned char *buf,
 	if (!count)
 	if (!count)
 		return 0;
 		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);
 	spin_lock_irqsave(&ch->ch_lock, lock_flags);
 
 
 	/* Get our space available for the channel from the board */
 	/* Get our space available for the channel from the board */