Skip to contentSkip to conversation

staging: dgap: remove unused variable 'orig_count'

PATCH New Rahul Bedarkar 1 participant 1 message Oct 1, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: dgap: remove unused variable 'orig_count'

This patch fixes sparse warning
warning: variable ‘orig_count’ set but not used [-Wunused-but-set-variable]

---
 drivers/staging/dgap/dgap.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/staging/dgap/dgap.c +0 -8
index 06c55cb..30723c3 100644
@@ -2669,7 +2669,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)
@@ -2690,13 +2689,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 */
Signature · 1 line
1.8.3.2