From: millert Date: Thu, 27 Apr 2017 15:35:36 +0000 (+0000) Subject: Remove useless check for ks_env_table being NULL. Since ks_env_table X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9b935162a2ff01a96412f4fe0b66c6e60d2be40d;p=openbsd 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. --- 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);