Commit f1c93e49 authored by Richard Weinberger's avatar Richard Weinberger Committed by Linus Torvalds

um: remove dead code

GCC 4.6's -Wunused-but-set-variable found some dead code.
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 39073db1
...@@ -543,11 +543,10 @@ int parse_chan_pair(char *str, struct line *line, int device, ...@@ -543,11 +543,10 @@ int parse_chan_pair(char *str, struct line *line, int device,
const struct chan_opts *opts, char **error_out) const struct chan_opts *opts, char **error_out)
{ {
struct list_head *chans = &line->chan_list; struct list_head *chans = &line->chan_list;
struct chan *new, *chan; struct chan *new;
char *in, *out; char *in, *out;
if (!list_empty(chans)) { if (!list_empty(chans)) {
chan = list_entry(chans->next, struct chan, list);
free_chan(chans, 0); free_chan(chans, 0);
INIT_LIST_HEAD(chans); INIT_LIST_HEAD(chans);
} }
......
...@@ -176,10 +176,9 @@ void line_flush_buffer(struct tty_struct *tty) ...@@ -176,10 +176,9 @@ void line_flush_buffer(struct tty_struct *tty)
{ {
struct line *line = tty->driver_data; struct line *line = tty->driver_data;
unsigned long flags; unsigned long flags;
int err;
spin_lock_irqsave(&line->lock, flags); spin_lock_irqsave(&line->lock, flags);
err = flush_buffer(line); flush_buffer(line);
spin_unlock_irqrestore(&line->lock, flags); spin_unlock_irqrestore(&line->lock, flags);
} }
......
...@@ -20,9 +20,8 @@ static void kill_off_processes(void) ...@@ -20,9 +20,8 @@ static void kill_off_processes(void)
os_kill_ptraced_process(userspace_pid[0], 1); os_kill_ptraced_process(userspace_pid[0], 1);
else { else {
struct task_struct *p; struct task_struct *p;
int pid, me; int pid;
me = os_getpid();
for_each_process(p) { for_each_process(p) {
if (p->mm == NULL) if (p->mm == NULL)
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment