summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2017-04-27 15:35:36 +0000
committermillert <millert@openbsd.org>2017-04-27 15:35:36 +0000
commit9b935162a2ff01a96412f4fe0b66c6e60d2be40d (patch)
tree8f958918c4b15c8548e0386d66b81b2ba4bfe522
parentremove a static array unused since rev 1.306 spotted by clang (diff)
downloadwireguard-openbsd-9b935162a2ff01a96412f4fe0b66c6e60d2be40d.tar.xz
wireguard-openbsd-9b935162a2ff01a96412f4fe0b66c6e60d2be40d.zip
Remove useless check for ks_env_table being NULL. Since ks_env_table
is an array embedded in struct keynote_session it can never be NULL. Quiets a clang warning.
-rw-r--r--lib/libkeynote/keynote.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkeynote/keynote.y b/lib/libkeynote/keynote.y
index a3fcccd60b3..8a650341ed6 100644
--- a/lib/libkeynote/keynote.y
+++ b/lib/libkeynote/keynote.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: keynote.y,v 1.17 2015/11/19 02:35:24 mmcc Exp $ */
+/* $OpenBSD: keynote.y,v 1.18 2017/04/27 15:35:36 millert Exp $ */
/*
* The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu)
*
@@ -744,7 +744,7 @@ my_lookup(char *s)
return NULL;
}
- if ((ks != NULL) && (ks->ks_env_table != NULL))
+ if (ks != NULL)
{
/* Action environment */
ret = keynote_env_lookup(s, ks->ks_env_table, HASHTABLESIZE);