vhost-vdpa: tweak the error label in vhost_vdpa_add()
commita97ef87a205ee957c367ebc7621bd9860ad6047d
authorJason Wang <jasowang@redhat.com>
Fri, 3 Sep 2021 09:10:19 +0000 (3 17:10 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 4 Sep 2021 21:34:05 +0000 (4 17:34 -0400)
tree70001feabd196bb4571e964ef5dbc8c865305e26
parentab36edcfeaa292ca4c49c7ebb505f122ef06f9cc
vhost-vdpa: tweak the error label in vhost_vdpa_add()

Introduce new error label to avoid the unnecessary checking of net
pointer.

Fixes: 1e0a84ea49b68 ("vhost-vdpa: introduce vhost-vdpa net client")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20210903091031.47303-10-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/vhost-vdpa.c