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>
This commit is contained in:
parent
c3054a6e6a
commit
444ee02c5f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user