diff options
author | Zhang Chen <zhangchen.fnst@cn.fujitsu.com> | 2017-05-17 10:09:38 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2017-05-23 10:10:38 +0800 |
commit | e2f840163854ee5f666bc07db77bd88ac25b45bc (patch) | |
tree | 421e6af0ec9bd14f4ff5d4d875055764d3d1f541 /net | |
parent | 559964a1ada14dc2d5066f445a2ef1c8389f7d6c (diff) |
net/filter-mirror.c: Remove duplicate check code.
The s->outdev have checked in filter_mirror_set_outdev().
Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/filter-mirror.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/filter-mirror.c b/net/filter-mirror.c index 72fa7c2b6c..fd0322f2af 100644 --- a/net/filter-mirror.c +++ b/net/filter-mirror.c @@ -194,12 +194,6 @@ static void filter_mirror_setup(NetFilterState *nf, Error **errp) MirrorState *s = FILTER_MIRROR(nf); Chardev *chr; - if (!s->outdev) { - error_setg(errp, "filter mirror needs 'outdev' " - "property set"); - return; - } - chr = qemu_chr_find(s->outdev); if (chr == NULL) { error_set(errp, ERROR_CLASS_DEVICE_NOT_FOUND, |