]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
gssd_proc: remove pointless test against FD_ALLOC_BLOCK in process_pipedir
authorNeilBrown <neilb@suse.de>
Wed, 28 Nov 2012 19:33:59 +0000 (14:33 -0500)
committerSteve Dickson <steved@redhat.com>
Wed, 28 Nov 2012 19:48:02 +0000 (14:48 -0500)
I can see no possible point for this test against FD_ALLOC_BLOCK,
so just remove the test.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/gssd/gssd_proc.c

index ba118d7fda62959a42446c8110a373e55882aaab..6f9840e7467218ec8862c54ab2bd015f2143ab99 100644 (file)
@@ -556,9 +556,8 @@ process_pipedir(char *pipe_name)
 
        update_old_clients(namelist, j, pipe_name);
        for (i=0; i < j; i++) {
-               if (i < FD_ALLOC_BLOCK
-                               && !strncmp(namelist[i]->d_name, "clnt", 4)
-                               && !find_client(namelist[i]->d_name, pipe_name))
+               if (!strncmp(namelist[i]->d_name, "clnt", 4)
+                   && !find_client(namelist[i]->d_name, pipe_name))
                        process_clnt_dir(namelist[i]->d_name, pipe_name);
                free(namelist[i]);
        }