summaryrefslogtreecommitdiffstats
path: root/cmd-pipe-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-10-21 18:12:31 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-10-21 18:12:31 +0000
commit9a4855295b9116e9bfe9003ec480e6bc27826bc7 (patch)
tree54276b73e4c074d72edbe74e15385e5e6854021f /cmd-pipe-pane.c
parentdd46f634fe807e4819f8ba3c5cc6f290e530a54e (diff)
Nuke dead store.
Diffstat (limited to 'cmd-pipe-pane.c')
-rw-r--r--cmd-pipe-pane.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c
index 9a4f44d3..4fa43184 100644
--- a/cmd-pipe-pane.c
+++ b/cmd-pipe-pane.c
@@ -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. */