From: NeilBrown Date: Fri, 24 Jun 2005 05:03:16 +0000 (-0700) Subject: [PATCH] knfsd: nfsd4: nfs4_check_open_reclaim cleanup X-Git-Tag: MMI-PSA29.97-13-9~56704^2~358 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dfc8356570b6fcb4035c7d916ade5bbbe6c3b50a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] knfsd: nfsd4: nfs4_check_open_reclaim cleanup Minor cleanup. Signed-off-by: J. Bruce Fields Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 6ba428afa433..2a5f00b0ee99 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -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; }