From: Dmitry Guryanov Date: Wed, 26 Sep 2012 12:30:01 +0000 (+0400) Subject: parallels: remove unneded code from parallelsDoCmdRun X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2020a9f9c746c675ff20309cbd258350aefe372c;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git parallels: remove unneded code from parallelsDoCmdRun scmd was used for debugging and I forgot to remove it before commit, so remove it now. Signed-off-by: Dmitry Guryanov --- diff --git a/src/parallels/parallels_utils.c b/src/parallels/parallels_utils.c index 89a0d8979..521fd9739 100644 --- a/src/parallels/parallels_utils.c +++ b/src/parallels/parallels_utils.c @@ -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);