aboutsummaryrefslogtreecommitdiff
path: root/net/tap.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2015-05-15 13:59:02 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2015-05-27 10:34:07 +0100
commit95c35a74fea51e307f6a3967e465a22776056b7e (patch)
tree746567f28342d3c73157acc8c675cefda90eff47 /net/tap.c
parent576c6eb6700d241c9d4a6883d25720c7bbaaeccd (diff)
downloadqemu-95c35a74fea51e307f6a3967e465a22776056b7e.zip
qemu-95c35a74fea51e307f6a3967e465a22776056b7e.tar.gz
qemu-95c35a74fea51e307f6a3967e465a22776056b7e.tar.bz2
tap: Finish conversion of tap_open() to Error
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1431691143-1015-15-git-send-email-armbru@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'net/tap.c')
-rw-r--r--net/tap.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/tap.c b/net/tap.c
index 362df42..c1ee4f1 100644
--- a/net/tap.c
+++ b/net/tap.c
@@ -597,10 +597,6 @@ static int net_tap_init(const NetdevTapOptions *tap, int *vnet_hdr,
TFR(fd = tap_open(ifname, ifname_sz, vnet_hdr, vnet_hdr_required,
mq_required, errp));
if (fd < 0) {
- /* FIXME drop when all tap_open() store an Error */
- if (errp && !*errp) {
- error_setg(errp, "can't open tap device");
- }
return -1;
}