]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
parallels: remove unneded code from parallelsDoCmdRun
authorDmitry Guryanov <dguryanov@parallels.com>
Wed, 26 Sep 2012 12:30:01 +0000 (16:30 +0400)
committerEric Blake <eblake@redhat.com>
Wed, 26 Sep 2012 14:43:44 +0000 (08:43 -0600)
scmd was used for debugging and I forgot to remove it before
commit, so remove it now.

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
src/parallels/parallels_utils.c

index 89a0d8979e5cd38237b2c03e64f3485f2b6adc75..521fd9739407484fc278ce1de7a16f87c11e04ad 100644 (file)
@@ -37,23 +37,17 @@ static int
 parallelsDoCmdRun(char **outbuf, const char *binary, va_list list)
 {
     virCommandPtr cmd = virCommandNewVAList(binary, list);
-    char *scmd = NULL;
     int ret = -1;
 
     if (outbuf)
         virCommandSetOutputBuffer(cmd, outbuf);
 
-    scmd = virCommandToString(cmd);
-    if (!scmd)
-        goto cleanup;
-
     if (virCommandRun(cmd, NULL))
         goto cleanup;
 
     ret = 0;
 
   cleanup:
-    VIR_FREE(scmd);
     virCommandFree(cmd);
     if (ret && outbuf)
         VIR_FREE(*outbuf);