Commit 9df1336c authored by Anna Schumaker's avatar Anna Schumaker

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: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 334f87dd
...@@ -3416,16 +3416,11 @@ static int nfs4_lookup_root_sec(struct nfs_server *server, struct nfs_fh *fhandl ...@@ -3416,16 +3416,11 @@ static int nfs4_lookup_root_sec(struct nfs_server *server, struct nfs_fh *fhandl
.pseudoflavor = flavor, .pseudoflavor = flavor,
}; };
struct rpc_auth *auth; struct rpc_auth *auth;
int ret;
auth = rpcauth_create(&auth_args, server->client); auth = rpcauth_create(&auth_args, server->client);
if (IS_ERR(auth)) { if (IS_ERR(auth))
ret = -EACCES; return -EACCES;
goto out; return nfs4_lookup_root(server, fhandle, info);
}
ret = nfs4_lookup_root(server, fhandle, info);
out:
return ret;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment