Skip to content

Commit

Permalink
serial167: Kill unused variables
Browse files Browse the repository at this point in the history
commits 638157b ("serial167: prepare to push
BKL down into drivers") and 4165fe4 ("tty:
Fix up char drivers request_room usage") removed code without removing the
corresponding variables:

| drivers/char/serial167.c: In function 'cd2401_rx_interrupt':
| drivers/char/serial167.c:630: warning: unused variable 'len'
| drivers/char/serial167.c: In function 'cy_ioctl':
| drivers/char/serial167.c:1531: warning: unused variable 'val'

Remove the variables to kill the warnings.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
  • Loading branch information
Geert Uytterhoeven committed May 17, 2010
1 parent b52dd00 commit f3c7f31
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/char/serial167.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ static irqreturn_t cd2401_rx_interrupt(int irq, void *dev_id)
char data;
int char_count;
int save_cnt;
int len;

/* determine the channel and change to that context */
channel = (u_short) (base_addr[CyLICR] >> 2);
Expand Down Expand Up @@ -1528,7 +1527,6 @@ static int
cy_ioctl(struct tty_struct *tty, struct file *file,
unsigned int cmd, unsigned long arg)
{
unsigned long val;
struct cyclades_port *info = tty->driver_data;
int ret_val = 0;
void __user *argp = (void __user *)arg;
Expand Down

0 comments on commit f3c7f31

Please sign in to comment.