diff options
author | zhanghailiang <zhang.zhanghailiang@huawei.com> | 2016-10-13 14:57:28 +0800 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2016-10-28 18:17:23 +0300 |
commit | 7344ffaa2d1fed640e5ac0f45e339289ef45ca7b (patch) | |
tree | 0a1248eb35d96dbbe58aaa1d0372dca40a891084 /net | |
parent | c1a900cf4a3925c2e4b313b82da5df955f17b70a (diff) | |
download | qemu-7344ffaa2d1fed640e5ac0f45e339289ef45ca7b.zip qemu-7344ffaa2d1fed640e5ac0f45e339289ef45ca7b.tar.gz qemu-7344ffaa2d1fed640e5ac0f45e339289ef45ca7b.tar.bz2 |
colo-compare: remove unused struct CompareChardevProps and 'props' variable
After commit 0a73336d, 'props' variable in find_and_check_chardev()
is unused. Remove it, togther with struct CompareChardevProps.
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'net')
-rw-r--r-- | net/colo-compare.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/colo-compare.c b/net/colo-compare.c index f791383..2089bea 100644 --- a/net/colo-compare.c +++ b/net/colo-compare.c @@ -92,10 +92,6 @@ typedef struct CompareClass { ObjectClass parent_class; } CompareClass; -typedef struct CompareChardevProps { - bool is_socket; -} CompareChardevProps; - enum { PRIMARY_IN = 0, SECONDARY_IN, @@ -571,8 +567,6 @@ static int find_and_check_chardev(CharDriverState **chr, char *chr_name, Error **errp) { - CompareChardevProps props; - *chr = qemu_chr_find(chr_name); if (*chr == NULL) { error_setg(errp, "Device '%s' not found", @@ -580,8 +574,6 @@ static int find_and_check_chardev(CharDriverState **chr, return 1; } - memset(&props, 0, sizeof(props)); - if (!qemu_chr_has_feature(*chr, QEMU_CHAR_FEATURE_RECONNECTABLE)) { error_setg(errp, "chardev \"%s\" is not reconnectable", chr_name); |