[libvirt PATCH 4/8] remote: remoteDispatchAuthList: remove useless 'rv'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/remote/remote_daemon_dispatch.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/remote/remote_daemon_dispatch.c b/src/remote/remote_daemon_dispatch.c
index 90115167fb..b8813611c8 100644
--- a/src/remote/remote_daemon_dispatch.c
+++ b/src/remote/remote_daemon_dispatch.c
@@ -3593,7 +3593,6 @@ remoteDispatchAuthList(virNetServerPtr server,
                        virNetMessageErrorPtr rerr,
                        remote_auth_list_ret *ret)
 {
-    int rv = -1;
     int auth = virNetServerClientGetAuth(client);
     uid_t callerUid;
     gid_t callerGid;
@@ -3636,11 +3635,7 @@ remoteDispatchAuthList(virNetServerPtr server,
         break;
     }
 
-    rv = 0;
-
-    if (rv < 0)
-        virNetMessageSaveError(rerr);
-    return rv;
+    return 0;
 }
 
 
-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux