From: Michal Privoznik Date: Fri, 4 Apr 2025 09:46:36 +0000 (+0200) Subject: doRemoteOpen: Drop needless typecast of @transport X-Git-Tag: v11.3.0-rc1~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9c4f20d8f5f2ff4b628da25f791e43f0209de9a;p=thirdparty%2Flibvirt.git doRemoteOpen: Drop needless typecast of @transport The @transport variable is already pass into the function with proper type. There's no need to typecast it to its very same type inside the function. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko Reviewed-by: Roman Bogorodskiy --- diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 3ecef7d73f..2690c05267 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -1063,7 +1063,7 @@ doRemoteOpen(virConnectPtr conn, VIR_DEBUG("Connecting with transport %d", transport); - switch ((remoteDriverTransport)transport) { + switch (transport) { case REMOTE_DRIVER_TRANSPORT_UNIX: case REMOTE_DRIVER_TRANSPORT_SSH: case REMOTE_DRIVER_TRANSPORT_LIBSSH: @@ -1088,7 +1088,7 @@ doRemoteOpen(virConnectPtr conn, VIR_DEBUG("Chosen UNIX socket %s", NULLSTR(sockname)); /* Connect to the remote service. */ - switch ((remoteDriverTransport)transport) { + switch (transport) { case REMOTE_DRIVER_TRANSPORT_TLS: if (conf && !tls_priority && virConfGetValueString(conf, "tls_priority", &tls_priority) < 0)