Skip to contentSkip to conversation

isdn: elsa_ser: Fix set-but-unused variables.

PATCH In review David Miller 1 participant 1 message Apr 18, 2011

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 20/42 isdn: elsa_ser: Fix set-but-unused variables.

The variable 'bits' is set but unused in
change_speed(). Just kill it off.

---
 drivers/isdn/hisax/elsa_ser.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/isdn/hisax/elsa_ser.c +1 -2
index cbda379..3fa9f61 100644
@@ -109,11 +109,10 @@ static void change_speed(struct IsdnCardState *cs, int baud)
 {
 	int	quot = 0, baud_base;
 	unsigned cval, fcr = 0;
-	int	bits;
 
 
 	/* byte size and parity */
-	cval = 0x03; bits = 10;
+	cval = 0x03;
 	/* Determine divisor based on baud rate */
 	baud_base = BASE_BAUD;
 	quot = baud_base / baud;
Signature · 1 line
1.7.4.3