From: Markus Armbruster Date: Tue, 24 Jan 2023 12:19:19 +0000 (+0100) Subject: hmp: Drop redundant argument check from add_completion_option() X-Git-Tag: qemu-xen-4.18.0-rc5~337^2~27 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=444ee02c5ff3b1ce794e9dc2fe2005a13ae8e4a7;p=qemu-xen.git hmp: Drop redundant argument check from add_completion_option() No need to check for null arguments, no caller passes them. Signed-off-by: Markus Armbruster Message-Id: <20230124121946.1139465-6-armbru@redhat.com> --- diff --git a/monitor/misc.c b/monitor/misc.c index c18a713d9c..d58a81c452 100644 --- a/monitor/misc.c +++ b/monitor/misc.c @@ -1353,9 +1353,6 @@ int get_monitor_def(Monitor *mon, int64_t *pval, const char *name) static void add_completion_option(ReadLineState *rs, const char *str, const char *option) { - if (!str || !option) { - return; - } if (!strncmp(option, str, strlen(str))) { readline_add_completion(rs, option); }