浏览代码

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

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

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 14 年之前
父节点
当前提交
db47367451
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/isdn/hisax/elsa_ser.c

+ 1 - 2
drivers/isdn/hisax/elsa_ser.c

@@ -109,11 +109,10 @@ static void change_speed(struct IsdnCardState *cs, int baud)
 {
 {
 	int	quot = 0, baud_base;
 	int	quot = 0, baud_base;
 	unsigned cval, fcr = 0;
 	unsigned cval, fcr = 0;
-	int	bits;
 
 
 
 
 	/* byte size and parity */
 	/* byte size and parity */
-	cval = 0x03; bits = 10;
+	cval = 0x03;
 	/* Determine divisor based on baud rate */
 	/* Determine divisor based on baud rate */
 	baud_base = BASE_BAUD;
 	baud_base = BASE_BAUD;
 	quot = baud_base / baud;
 	quot = baud_base / baud;