From: NeilBrown Date: Wed, 28 Nov 2012 19:33:59 +0000 (-0500) Subject: gssd_proc: remove pointless test against FD_ALLOC_BLOCK in process_pipedir X-Git-Tag: debian/1%1.2.8-1~11^2^2~47 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=19024076a7497a2423ff06d36496385f27395332;p=nfs-utils.git 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 Signed-off-by: Steve Dickson --- 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]); }