projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94dbe1a
)
isdn: elsa_ser: Fix set-but-unused variables.
author
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 23:38:33 +0000
(16:38 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 23:38:33 +0000
(16:38 -0700)
The variable 'bits' is set but unused in
change_speed(). Just kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hisax/elsa_ser.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/isdn/hisax/elsa_ser.c
b/drivers/isdn/hisax/elsa_ser.c
index cbda3790a10daa8a2c3d3775d498c63a331e3a15..3fa9f6171095c7c838695f13c7148b82810872bd 100644
(file)
--- 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;