Commit 718bce1 NSS: Remove dead code

1 file Authored and Committed by fidencio 2 months ago
NSS: Remove dead code

This piece of code introduced as part of 4049b63f8c most likely by
mistake and can be removed without causing any harm.

Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

    
 1 @@ -107,7 +107,6 @@
 2                              struct sss_packet *packet,
 3                              struct cache_req_result *result)
 4   {
 5 -     TALLOC_CTX *tmp_ctx;
 6       struct sysdb_netgroup_ctx **entries;
 7       struct sysdb_netgroup_ctx *entry;
 8       struct nss_enum_index *idx;
 9 @@ -118,11 +117,6 @@
10       errno_t ret;
11       unsigned int start;
12   
13 -     tmp_ctx = talloc_new(NULL);
14 -     if (tmp_ctx == NULL) {
15 -         return ENOMEM;
16 -     }
17 - 
18       idx = cmd_ctx->enum_index;
19       entries = cmd_ctx->enum_ctx->netgroup;
20   
21 @@ -148,7 +142,6 @@
22               break;
23           }
24   
25 -         talloc_free_children(tmp_ctx);
26           entry = entries[idx->result];
27   
28           switch (entry->type) {
29 @@ -174,8 +167,6 @@
30       ret = EOK;
31   
32   done:
33 -     talloc_free(tmp_ctx);
34 - 
35       if (ret != EOK) {
36           sss_packet_set_size(packet, 0);
37           return ret;