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>
This commit is contained in:
Markus Armbruster 2015-05-15 13:59:02 +02:00 committed by Stefan Hajnoczi
parent 576c6eb670
commit 95c35a74fe

View File

@ -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, TFR(fd = tap_open(ifname, ifname_sz, vnet_hdr, vnet_hdr_required,
mq_required, errp)); mq_required, errp));
if (fd < 0) { 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; return -1;
} }