summaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/line.c
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2011-07-26 02:12:55 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-26 05:57:13 +0200
commitf1c93e4946ae1cc268729451de6335a7e7d2bea9 (patch)
treeed1ed33faf640af3544963b0afc085ec8ed9e640 /arch/um/drivers/line.c
parentum: adjust size of pid_buf (diff)
downloadlinux-f1c93e4946ae1cc268729451de6335a7e7d2bea9.tar.xz
linux-f1c93e4946ae1cc268729451de6335a7e7d2bea9.zip
um: remove dead code
GCC 4.6's -Wunused-but-set-variable found some dead code. Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/drivers/line.c')
-rw-r--r--arch/um/drivers/line.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c
index 35dd0b86401a..d51c404239a8 100644
--- a/arch/um/drivers/line.c
+++ b/arch/um/drivers/line.c
@@ -176,10 +176,9 @@ void line_flush_buffer(struct tty_struct *tty)
{
struct line *line = tty->driver_data;
unsigned long flags;
- int err;
spin_lock_irqsave(&line->lock, flags);
- err = flush_buffer(line);
+ flush_buffer(line);
spin_unlock_irqrestore(&line->lock, flags);
}