mirror of https://gitee.com/openkylin/libvirt.git
test: Remove unused timeval
This commit is contained in:
parent
1b29646e60
commit
af2abe3f19
|
@ -499,7 +499,6 @@ cleanup:
|
|||
|
||||
static int testOpenDefault(virConnectPtr conn) {
|
||||
int u;
|
||||
struct timeval tv;
|
||||
testConnPtr privconn;
|
||||
virDomainDefPtr domdef = NULL;
|
||||
virDomainObjPtr domobj = NULL;
|
||||
|
@ -526,12 +525,6 @@ static int testOpenDefault(virConnectPtr conn) {
|
|||
testDriverLock(privconn);
|
||||
conn->privateData = privconn;
|
||||
|
||||
if (gettimeofday(&tv, NULL) < 0) {
|
||||
virReportSystemError(errno,
|
||||
"%s", _("getting time of day"));
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (virDomainObjListInit(&privconn->domains) < 0)
|
||||
goto error;
|
||||
|
||||
|
|
Loading…
Reference in New Issue