Skip to content

Commit

Permalink
nfsd4: exchange_id error cleanup
Browse files Browse the repository at this point in the history
There's no point to the dprintk here as the main proc_compound loop
already does this.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed Jun 1, 2012
1 parent 11ae681 commit 2786cc3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1545,13 +1545,11 @@ nfsd4_exchange_id(struct svc_rqst *rqstp,
status = nfs4_make_rec_clidname(dname, &exid->clname);

if (status)
goto error;
return status;

strhashval = clientstr_hashval(dname);

nfs4_lock_state();
status = nfs_ok;

conf = find_confirmed_client_by_str(dname, strhashval);
if (conf) {
if (!clp_used_exchangeid(conf)) {
Expand Down Expand Up @@ -1630,8 +1628,6 @@ nfsd4_exchange_id(struct svc_rqst *rqstp,

out:
nfs4_unlock_state();
error:
dprintk("nfsd4_exchange_id returns %d\n", ntohl(status));
return status;
}

Expand Down

0 comments on commit 2786cc3

Please sign in to comment.