Don't do virSetConnError when virDrvSupportsFeature is successful.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
Chris Lalancette 2009-09-21 11:43:23 +02:00
parent 3514c8c375
commit 9ca731f66c

View File

@ -1349,8 +1349,11 @@ virDrvSupportsFeature (virConnectPtr conn, int feature)
}
ret = VIR_DRV_SUPPORTS_FEATURE (conn->driver, conn, feature);
/* Copy to connection error object for back compatability */
virSetConnError(conn);
if (ret < 0)
/* Copy to connection error object for back compatability */
virSetConnError(conn);
return ret;
}