From: Michal Privoznik Date: Tue, 3 Dec 2019 17:11:32 +0000 (+0100) Subject: get_nonnull_domain: Drop useless comment X-Git-Tag: v6.0.0-rc1~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b86c65e170946f90605089a70650b8a5bc81d442;p=thirdparty%2Flibvirt.git get_nonnull_domain: Drop useless comment The intent of get_nonnull_domain() is not to validate virDomain as sent by the client but just to construct the virDomain structure. The validation is then done in each API when looking up the domain in our internal hash tables. Signed-off-by: Michal Privoznik Reviewed-by: Cole Robinson --- diff --git a/src/remote/remote_daemon_dispatch.c b/src/remote/remote_daemon_dispatch.c index 782696f07a..9c294ddc39 100644 --- a/src/remote/remote_daemon_dispatch.c +++ b/src/remote/remote_daemon_dispatch.c @@ -7250,9 +7250,6 @@ remoteDispatchNetworkPortGetParameters(virNetServerPtr server G_GNUC_UNUSED, static virDomainPtr get_nonnull_domain(virConnectPtr conn, remote_nonnull_domain domain) { - /* Should we believe the domain.id sent by the client? Maybe - * this should be a check rather than an assignment? XXX - */ return virGetDomain(conn, domain.name, BAD_CAST domain.uuid, domain.id); }