From: NeilBrown this fixes coverity id #3. Coverity detected dead code, since the == -1 comparison only returns 0 or 1 to error. Therefore the if ( error < 0 ) statement was always false. Seems that this was an if( error = nfs4... ) statement some time ago, which got broken during cleanup. Signed-off-by: Eric Sesterhenn Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton --- fs/nfsd/nfs4acl.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN fs/nfsd/nfs4acl.c~knfsd-nfsd4-wrong-error-handling-in-nfs4acl fs/nfsd/nfs4acl.c --- 25/fs/nfsd/nfs4acl.c~knfsd-nfsd4-wrong-error-handling-in-nfs4acl Mon Apr 3 16:07:53 2006 +++ 25-akpm/fs/nfsd/nfs4acl.c Mon Apr 3 16:07:53 2006 @@ -790,7 +790,7 @@ nfs4_acl_split(struct nfs4_acl *acl, str continue; error = nfs4_acl_add_ace(dacl, ace->type, ace->flag, - ace->access_mask, ace->whotype, ace->who) == -1; + ace->access_mask, ace->whotype, ace->who); if (error < 0) goto out; _