projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3054a6
)
hmp: Drop redundant argument check from add_completion_option()
author
Markus Armbruster
<armbru@redhat.com>
Tue, 24 Jan 2023 12:19:19 +0000
(13:19 +0100)
committer
Markus Armbruster
<armbru@redhat.com>
Sat, 4 Feb 2023 06:56:54 +0000
(07:56 +0100)
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>
monitor/misc.c
patch
|
blob
|
history
diff --git
a/monitor/misc.c
b/monitor/misc.c
index c18a713d9c2ebcd32b233cb481be42969e34017b..d58a81c452af4170b50d293e6178605683df2e06 100644
(file)
--- 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);
}