diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-06-11 07:35:21 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-11 11:50:58 -0400 |
commit | b39933fbd304021580800796683b8ddaa3dd0a6a (patch) | |
tree | 4c2a6f49e5deef165643c56d8f88f9e8fe1dae00 /drivers/char | |
parent | 963118eef9e6706e2b5356309fb0cdd9c9eba81d (diff) |
tty: cyclades, remove unused variables
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/cyclades.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/char/cyclades.c b/drivers/char/cyclades.c index 6adbc9759661..456019051742 100644 --- a/drivers/char/cyclades.c +++ b/drivers/char/cyclades.c | |||
@@ -2963,7 +2963,6 @@ static void set_line_char(struct cyclades_port *info) | |||
2963 | void __iomem *base_addr; | 2963 | void __iomem *base_addr; |
2964 | int chip, channel, index; | 2964 | int chip, channel, index; |
2965 | unsigned cflag, iflag; | 2965 | unsigned cflag, iflag; |
2966 | unsigned short chip_number; | ||
2967 | int baud, baud_rate = 0; | 2966 | int baud, baud_rate = 0; |
2968 | int i; | 2967 | int i; |
2969 | 2968 | ||
@@ -2992,7 +2991,6 @@ static void set_line_char(struct cyclades_port *info) | |||
2992 | 2991 | ||
2993 | card = info->card; | 2992 | card = info->card; |
2994 | channel = info->line - card->first_line; | 2993 | channel = info->line - card->first_line; |
2995 | chip_number = channel / 4; | ||
2996 | 2994 | ||
2997 | if (!cy_is_Z(card)) { | 2995 | if (!cy_is_Z(card)) { |
2998 | 2996 | ||
@@ -3212,9 +3210,7 @@ static void set_line_char(struct cyclades_port *info) | |||
3212 | } else { | 3210 | } else { |
3213 | struct FIRM_ID __iomem *firm_id; | 3211 | struct FIRM_ID __iomem *firm_id; |
3214 | struct ZFW_CTRL __iomem *zfw_ctrl; | 3212 | struct ZFW_CTRL __iomem *zfw_ctrl; |
3215 | struct BOARD_CTRL __iomem *board_ctrl; | ||
3216 | struct CH_CTRL __iomem *ch_ctrl; | 3213 | struct CH_CTRL __iomem *ch_ctrl; |
3217 | struct BUF_CTRL __iomem *buf_ctrl; | ||
3218 | __u32 sw_flow; | 3214 | __u32 sw_flow; |
3219 | int retval; | 3215 | int retval; |
3220 | 3216 | ||
@@ -3224,9 +3220,7 @@ static void set_line_char(struct cyclades_port *info) | |||
3224 | 3220 | ||
3225 | zfw_ctrl = card->base_addr + | 3221 | zfw_ctrl = card->base_addr + |
3226 | (readl(&firm_id->zfwctrl_addr) & 0xfffff); | 3222 | (readl(&firm_id->zfwctrl_addr) & 0xfffff); |
3227 | board_ctrl = &zfw_ctrl->board_ctrl; | ||
3228 | ch_ctrl = &(zfw_ctrl->ch_ctrl[channel]); | 3223 | ch_ctrl = &(zfw_ctrl->ch_ctrl[channel]); |
3229 | buf_ctrl = &zfw_ctrl->buf_ctrl[channel]; | ||
3230 | 3224 | ||
3231 | /* baud rate */ | 3225 | /* baud rate */ |
3232 | baud = tty_get_baud_rate(info->port.tty); | 3226 | baud = tty_get_baud_rate(info->port.tty); |