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 */ /* TLS Port */
if (tls_port) { if (tls_port) {
virBufferAsprintf(&buf, virBufferAsprintf(&buf,
"%stls-port=%d", "?tls-port=%d",
params ? "&" : "?",
tls_port); tls_port);
params = true; params = true;
} }