From dd2a6cc80b615568d849e1931057a299b000c82e Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Thu, 2 Aug 2018 21:27:53 -0300 Subject: [PATCH] hyperv: 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/hyperv/hyperv_driver.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/hyperv/hyperv_driver.c b/src/hyperv/hyperv_driver.c index 6bc4c099e2..7ca145aef5 100644 --- a/src/hyperv/hyperv_driver.c +++ b/src/hyperv/hyperv_driver.c @@ -128,13 +128,6 @@ hypervConnectOpen(virConnectPtr conn, virConnectAuthPtr auth, virCheckFlags(VIR_CONNECT_RO, VIR_DRV_OPEN_ERROR); - /* Require auth */ - if (auth == NULL || auth->cb == NULL) { - 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;