Skip to content

Commit

Permalink
net/filter-mirror.c: Remove duplicate check code.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zhangckid authored and jasowang committed May 23, 2017
1 parent 559964a commit e2f8401
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions net/filter-mirror.c
Expand Up @@ -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,
Expand Down

0 comments on commit e2f8401

Please sign in to comment.