Fix warnings (values are always true).
authorjelmer <jelmer@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 8 Oct 2007 12:56:27 +0000 (12:56 +0000)
committerjelmer <jelmer@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Mon, 8 Oct 2007 12:56:27 +0000 (12:56 +0000)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@25572 0c0555d6-39d7-0310-84fc-f1cc0bd64818

source/rpcclient/cmd_lsarpc.c

index 31a8e2b..020f4ac 100644 (file)
@@ -993,8 +993,7 @@ static NTSTATUS cmd_lsa_query_trustdominfobysid(struct rpc_pipe_client *cli,
        display_trust_dom_info(info, info_class, cli->pwd.password);
 
  done:
-       if (&pol)
-               rpccli_lsa_Close(cli, mem_ctx, &pol);
+       rpccli_lsa_Close(cli, mem_ctx, &pol);
 
        return result;
 }
@@ -1031,8 +1030,7 @@ static NTSTATUS cmd_lsa_query_trustdominfobyname(struct rpc_pipe_client *cli,
        display_trust_dom_info(info, info_class, cli->pwd.password);
 
  done:
-       if (&pol)
-               rpccli_lsa_Close(cli, mem_ctx, &pol);
+       rpccli_lsa_Close(cli, mem_ctx, &pol);
 
        return result;
 }
@@ -1080,8 +1078,7 @@ static NTSTATUS cmd_lsa_query_trustdominfo(struct rpc_pipe_client *cli,
        display_trust_dom_info(info, info_class, cli->pwd.password);
 
  done:
-       if (&pol)
-               rpccli_lsa_Close(cli, mem_ctx, &pol);
+       rpccli_lsa_Close(cli, mem_ctx, &pol);
 
        return result;
 }