summaryrefslogtreecommitdiffstats
path: root/drivers/isdn
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-04-17 16:38:33 -0700
committerDavid S. Miller <davem@davemloft.net>2011-04-17 16:38:33 -0700
commitdb47367451cbee4e8a3fd9389cc341f4acc43b1e (patch)
tree541f07048798e1f2fc90a29ec3f26496409e7fd6 /drivers/isdn
parent94dbe1ae44df1d22a391980eb6bd502f937b1af8 (diff)
downloadop-kernel-dev-db47367451cbee4e8a3fd9389cc341f4acc43b1e.zip
op-kernel-dev-db47367451cbee4e8a3fd9389cc341f4acc43b1e.tar.gz
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>
Diffstat (limited to 'drivers/isdn')
-rw-r--r--drivers/isdn/hisax/elsa_ser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/hisax/elsa_ser.c b/drivers/isdn/hisax/elsa_ser.c
index cbda379..3fa9f61 100644
--- a/drivers/isdn/hisax/elsa_ser.c
+++ b/drivers/isdn/hisax/elsa_ser.c
@@ -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;
OpenPOWER on IntegriCloud