net/filter-mirror: Fix mirror initial check typo

Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Zhang Chen 2016-09-30 10:27:58 +08:00 committed by Michael Tokarev
parent 7a25126d8a
commit 52cfcb4642

View File

@ -198,7 +198,7 @@ static void filter_mirror_setup(NetFilterState *nf, Error **errp)
MirrorState *s = FILTER_MIRROR(nf); MirrorState *s = FILTER_MIRROR(nf);
if (!s->outdev) { if (!s->outdev) {
error_setg(errp, "filter filter mirror needs 'outdev' " error_setg(errp, "filter mirror needs 'outdev' "
"property set"); "property set");
return; return;
} }
@ -315,7 +315,7 @@ filter_mirror_set_outdev(Object *obj, const char *value, Error **errp)
g_free(s->outdev); g_free(s->outdev);
s->outdev = g_strdup(value); s->outdev = g_strdup(value);
if (!s->outdev) { if (!s->outdev) {
error_setg(errp, "filter filter mirror needs 'outdev' " error_setg(errp, "filter mirror needs 'outdev' "
"property set"); "property set");
return; return;
} }