From d16f4795efdcfa0337911b13e697f22e3c2efcaa Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Thu, 2 Aug 2018 21:27:52 -0300 Subject: [PATCH] esx: Drop check for auth and auth->cb Since they are done inside virAuthGetPassword and virAuthGetUsername when needed. Signed-off-by: Marcos Paulo de Souza --- src/esx/esx_driver.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/esx/esx_driver.c b/src/esx/esx_driver.c index 03a84d7630..ef258a2ce2 100644 --- a/src/esx/esx_driver.c +++ b/src/esx/esx_driver.c @@ -854,13 +854,6 @@ esxConnectOpen(virConnectPtr conn, virConnectAuthPtr auth, conn->uri->path, conn->uri->scheme); } - /* Require auth */ - if (!auth || !auth->cb) { - virReportError(VIR_ERR_INVALID_ARG, "%s", - _("Missing or invalid auth pointer")); - return VIR_DRV_OPEN_ERROR; - } - /* Allocate per-connection private data */ if (VIR_ALLOC(priv) < 0) goto cleanup; -- GitLab