summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlteo <lteo@openbsd.org>2017-08-30 02:54:07 +0000
committerlteo <lteo@openbsd.org>2017-08-30 02:54:07 +0000
commitdcce3f413ff42b83f4c750fa19bbdff930917988 (patch)
treefce71b1e1b3a0f19c68136294629757d7fecf2d3
parentKill a useless setlocale() query (diff)
downloadwireguard-openbsd-dcce3f413ff42b83f4c750fa19bbdff930917988.tar.xz
wireguard-openbsd-dcce3f413ff42b83f4c750fa19bbdff930917988.zip
Remove unused variable; no binary change.
From Michael W. Bombardieri, thanks!
-rw-r--r--usr.bin/lex/filter.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/lex/filter.c b/usr.bin/lex/filter.c
index 558e038d2e6..22b3fccba07 100644
--- a/usr.bin/lex/filter.c
+++ b/usr.bin/lex/filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: filter.c,v 1.8 2017/08/17 19:27:48 tedu Exp $ */
+/* $OpenBSD: filter.c,v 1.9 2017/08/30 02:54:07 lteo Exp $ */
/* filter - postprocessing of flex output through filters */
@@ -174,9 +174,7 @@ filter_apply_chain(struct filter * chain)
/* run as a filter, either internally or by exec */
if (chain->filter_func) {
- int r;
-
- if ((r = chain->filter_func(chain)) == -1)
+ if (chain->filter_func(chain) == -1)
flexfatal(_("filter_func failed"));
exit(0);
} else {