r8941: Fix unused variable warning. Bugzilla #2940.
authorTim Potter <tpot@samba.org>
Tue, 2 Aug 2005 20:19:42 +0000 (20:19 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:00:21 +0000 (11:00 -0500)
source/rpc_server/srv_svcctl_nt.c

index 580d000d123c9ec0a1fc6ae46c53855e7fdc89ad..15d947cf0f1dd5d23f3d2203868fb7fe59353ca3 100644 (file)
@@ -253,7 +253,6 @@ WERROR _svcctl_open_service(pipes_struct *p, SVCCTL_Q_OPEN_SERVICE *q_u, SVCCTL_
        uint32 access_granted = 0;
        NTSTATUS status;
        pstring service;
-       SERVICE_INFO *scm_info;
 
        rpcstr_pull(service, q_u->servicename.buffer, sizeof(service), q_u->servicename.uni_str_len*2, 0);
        
@@ -262,7 +261,7 @@ WERROR _svcctl_open_service(pipes_struct *p, SVCCTL_Q_OPEN_SERVICE *q_u, SVCCTL_
        
        /* based on my tests you can open a service if you have a valid scm handle */
        
-       if ( !(scm_info = find_service_info_by_hnd( p, &q_u->handle )) )
+       if ( !find_service_info_by_hnd( p, &q_u->handle ) )
                return WERR_BADFID;
                        
        /* perform access checks */