From 886fdb1f7e185d47d8ddff0eb3bd1b1835f0d0c9 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 9 Apr 2020 13:56:46 +0000 Subject: A couple of other redundant checks/assignments. --- cmd-show-options.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cmd-show-options.c') diff --git a/cmd-show-options.c b/cmd-show-options.c index 0b9eb096..b5c5f59d 100644 --- a/cmd-show-options.c +++ b/cmd-show-options.c @@ -212,11 +212,9 @@ cmd_show_options_all(struct cmd *self, struct cmdq_item *item, int scope, if ((self->entry != &cmd_show_hooks_entry && !args_has(self->args, 'H') && - oe != NULL && (oe->flags & OPTIONS_TABLE_IS_HOOK)) || (self->entry == &cmd_show_hooks_entry && - (oe == NULL || - (~oe->flags & OPTIONS_TABLE_IS_HOOK)))) + (~oe->flags & OPTIONS_TABLE_IS_HOOK))) continue; o = options_get_only(oo, oe->name); -- cgit v1.2.3