From a1cfe959b22953546e6de0ccb912120ce810160d Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 5 Jun 2015 14:54:04 +0000 Subject: redundant check for 'list' --- menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.c b/menu.c index 7c9cce8..e5e992b 100644 --- a/menu.c +++ b/menu.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: menu.c,v 1.79 2015/03/28 22:09:10 okan Exp $ + * $OpenBSD: menu.c,v 1.80 2015/06/05 14:54:04 okan Exp $ */ #include @@ -338,7 +338,7 @@ menu_draw(struct menu_ctx *mc, struct menu_q *menuq, struct menu_q *resultq) int n, xsave, ysave; if (mc->list) { - if (TAILQ_EMPTY(resultq) && mc->list) { + if (TAILQ_EMPTY(resultq)) { /* Copy them all over. */ TAILQ_FOREACH(mi, menuq, entry) TAILQ_INSERT_TAIL(resultq, mi, -- cgit v1.2.3-2-gb3c3