From: John Ferlan Date: Tue, 15 Jan 2013 18:38:19 +0000 (-0500) Subject: parallels: Remove unused JSON fetch of "OS" X-Git-Tag: v1.0.2-rc1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d4a8aa9ad393264dda7bc884cfc59dd136870e9;p=thirdparty%2Flibvirt.git parallels: Remove unused JSON fetch of "OS" Commit id ac1c77f0 removed the "os" field in "parallelsDomObj" that commit id aa296e6c had added and the data is not used by the function. --- diff --git a/src/parallels/parallels_driver.c b/src/parallels/parallels_driver.c index 6f33080f86..2c267305c9 100644 --- a/src/parallels/parallels_driver.c +++ b/src/parallels/parallels_driver.c @@ -814,9 +814,6 @@ parallelsLoadDomain(parallelsConnPtr privconn, virJSONValuePtr jobj) if (!(pdom->home = strdup(tmp))) goto no_memory; - if (!(tmp = virJSONValueObjectGetString(jobj, "OS"))) - goto cleanup; - if (!(state = virJSONValueObjectGetString(jobj, "State"))) { parallelsParseError(); goto cleanup;