summaryrefslogtreecommitdiff
path: root/arch/um/drivers/chan_kern.c
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2011-07-26 00:12:55 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-26 03:57:13 (GMT)
commitf1c93e4946ae1cc268729451de6335a7e7d2bea9 (patch)
treeed1ed33faf640af3544963b0afc085ec8ed9e640 /arch/um/drivers/chan_kern.c
parent39073db15bf9016003e8a4e607d517f4928b713c (diff)
downloadlinux-f1c93e4946ae1cc268729451de6335a7e7d2bea9.tar.xz
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/chan_kern.c')
-rw-r--r--arch/um/drivers/chan_kern.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/drivers/chan_kern.c b/arch/um/drivers/chan_kern.c
index 25e1965..d4191fe 100644
--- a/arch/um/drivers/chan_kern.c
+++ b/arch/um/drivers/chan_kern.c
@@ -543,11 +543,10 @@ int parse_chan_pair(char *str, struct line *line, int device,
const struct chan_opts *opts, char **error_out)
{
struct list_head *chans = &line->chan_list;
- struct chan *new, *chan;
+ struct chan *new;
char *in, *out;
if (!list_empty(chans)) {
- chan = list_entry(chans->next, struct chan, list);
free_chan(chans, 0);
INIT_LIST_HEAD(chans);
}