diff options
author | Markus Armbruster <armbru@redhat.com> | 2023-01-24 13:19:19 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-02-04 07:56:54 +0100 |
commit | 444ee02c5ff3b1ce794e9dc2fe2005a13ae8e4a7 (patch) | |
tree | 9a7e5392d72165b8ab57282a6765d0a5c9354c8e /monitor | |
parent | c3054a6e6a8c191b20f981a022270af1ead0ab29 (diff) |
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 <armbru@redhat.com>
Message-Id: <20230124121946.1139465-6-armbru@redhat.com>
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/misc.c | 3 |
1 files changed, 0 insertions, 3 deletions
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); } |