virsh: Resolve Coverity DEADCODE

Coverity complains that on the first pass through the for loop that
'params' cannot be true, thus the ternary setting to "&" cannot be
done. Since we can only ever get to this point once, drop the ternary
This commit is contained in:
John Ferlan 2014-09-12 08:04:28 -04:00
parent 96aa6052a1
commit 0268a35db4

View File

@ -9825,8 +9825,7 @@ cmdDomDisplay(vshControl *ctl, const vshCmd *cmd)
/* TLS Port */
if (tls_port) {
virBufferAsprintf(&buf,
"%stls-port=%d",
params ? "&" : "?",
"?tls-port=%d",
tls_port);
params = true;
}