mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 10:19:47 +00:00
NFS: Remove unnecessary goto in nfs4_lookup_root_sec()
Once again, it's easier and cleaner just to return the error directly. Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
334f87dd11
commit
9df1336ca4
1 changed files with 3 additions and 8 deletions
|
@ -3416,16 +3416,11 @@ static int nfs4_lookup_root_sec(struct nfs_server *server, struct nfs_fh *fhandl
|
|||
.pseudoflavor = flavor,
|
||||
};
|
||||
struct rpc_auth *auth;
|
||||
int ret;
|
||||
|
||||
auth = rpcauth_create(&auth_args, server->client);
|
||||
if (IS_ERR(auth)) {
|
||||
ret = -EACCES;
|
||||
goto out;
|
||||
}
|
||||
ret = nfs4_lookup_root(server, fhandle, info);
|
||||
out:
|
||||
return ret;
|
||||
if (IS_ERR(auth))
|
||||
return -EACCES;
|
||||
return nfs4_lookup_root(server, fhandle, info);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue