esx_driver: Simplify IsEncrypted and IsSecure

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
This commit is contained in:
Marcos Paulo de Souza 2018-06-26 20:39:05 -03:00 committed by Michal Privoznik
parent 4539301bc8
commit 15498a76e4
1 changed files with 2 additions and 10 deletions

View File

@ -4000,11 +4000,7 @@ esxConnectIsEncrypted(virConnectPtr conn)
{
esxPrivate *priv = conn->privateData;
if (STRCASEEQ(priv->parsedUri->transport, "https")) {
return 1;
} else {
return 0;
}
return STRCASEEQ(priv->parsedUri->transport, "https");
}
@ -4014,11 +4010,7 @@ esxConnectIsSecure(virConnectPtr conn)
{
esxPrivate *priv = conn->privateData;
if (STRCASEEQ(priv->parsedUri->transport, "https")) {
return 1;
} else {
return 0;
}
return STRCASEEQ(priv->parsedUri->transport, "https");
}