[PATCH] knfsd: nfsd4: nfs4_check_open_reclaim cleanup
authorNeilBrown <neilb@cse.unsw.edu.au>
Fri, 24 Jun 2005 05:03:16 +0000 (22:03 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 24 Jun 2005 07:06:30 +0000 (00:06 -0700)
Minor cleanup.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4state.c

index 6ba428afa43345c46a608ae13acc67f9a36c6cd7..2a5f00b0ee99867974b14c433f2a387eb6d439e2 100644 (file)
@@ -3155,11 +3155,7 @@ nfs4_find_reclaim_client(clientid_t *clid)
 int
 nfs4_check_open_reclaim(clientid_t *clid)
 {
-       struct nfs4_client_reclaim *crp;
-
-       if ((crp = nfs4_find_reclaim_client(clid)) == NULL)
-               return nfserr_reclaim_bad;
-       return nfs_ok;
+       return nfs4_find_reclaim_client(clid) ? nfs_ok : nfserr_reclaim_bad;
 }