summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-11-28 14:33:59 -0500
committerSteve Dickson <steved@redhat.com>2012-11-28 14:48:02 -0500
commit19024076a7497a2423ff06d36496385f27395332 (patch)
tree4fb263ebcb0a46e83b87a9fa009b700e1b212964
parentc889e30a376e18fdef8ec74ade9897aa9e3d803a (diff)
downloadnfs-utils-19024076a7497a2423ff06d36496385f27395332.zip
nfs-utils-19024076a7497a2423ff06d36496385f27395332.tar.gz
nfs-utils-19024076a7497a2423ff06d36496385f27395332.tar.xz
gssd_proc: remove pointless test against FD_ALLOC_BLOCK in process_pipedir
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>
-rw-r--r--utils/gssd/gssd_proc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
index ba118d7..6f9840e 100644
--- a/utils/gssd/gssd_proc.c
+++ b/utils/gssd/gssd_proc.c
@@ -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]);
}