summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-pipe-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-21 18:12:32 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-21 18:12:32 +0000
commit83e3c0784947f6837ab7bb1944998c0c40cbb527 (patch)
tree5f9c95815d7511b96fa358194bb6b4442eafd02a /usr.bin/tmux/cmd-pipe-pane.c
parent0afb47da859d80716a113ea434f028fb5480a737 (diff)
Nuke dead store.
Diffstat (limited to 'usr.bin/tmux/cmd-pipe-pane.c')
-rw-r--r--usr.bin/tmux/cmd-pipe-pane.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-pipe-pane.c b/usr.bin/tmux/cmd-pipe-pane.c
index ff1ee43440c..0a1fe2aeaee 100644
--- a/usr.bin/tmux/cmd-pipe-pane.c
+++ b/usr.bin/tmux/cmd-pipe-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-pipe-pane.c,v 1.1 2009/10/11 10:04:27 nicm Exp $ */
+/* $OpenBSD: cmd-pipe-pane.c,v 1.2 2009/10/21 18:12:31 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -47,11 +47,10 @@ int
cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
{
struct cmd_target_data *data = self->data;
- struct winlink *wl;
struct window_pane *wp;
int old_fd, pipe_fd[2], null_fd, mode;
- if ((wl = cmd_find_pane(ctx, data->target, NULL, &wp)) == NULL)
+ if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL)
return (-1);
/* Destroy the old pipe. */