]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
test: Remove unused timeval
authorJiri Denemark <jdenemar@redhat.com>
Wed, 1 Jun 2011 11:47:33 +0000 (13:47 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 13 Jun 2011 09:13:30 +0000 (11:13 +0200)
src/test/test_driver.c

index 2da24f18f636b830aba1e29d9e42d353547d9b56..68ab2feffad4c012a31aeb8ab33ebac5d067eb34 100644 (file)
@@ -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;