diff options
| author | Al Viro <[email protected]> | 2024-02-20 05:24:19 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2025-07-03 02:44:55 +0000 |
| commit | bccea4ed060f1f6476ac7a0649ffa73f77d6e94c (patch) | |
| tree | 47754c5e34ec9dd3efe8998e0e0a12b79f6c9813 /net/sunrpc/auth_gss/auth_gss.c | |
| parent | rpc_populate(): lift cleanup into callers (diff) | |
| download | kernel-bccea4ed060f1f6476ac7a0649ffa73f77d6e94c.tar.gz kernel-bccea4ed060f1f6476ac7a0649ffa73f77d6e94c.zip | |
rpc_unlink(): saner calling conventions
1) pass it pipe instead of pipe->dentry
2) zero pipe->dentry afterwards
3) it always returns 0; why bother?
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/sunrpc/auth_gss/auth_gss.c')
| -rw-r--r-- | net/sunrpc/auth_gss/auth_gss.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 0fa244f16876..f2a44d589cfb 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c @@ -887,12 +887,8 @@ static void gss_pipe_dentry_destroy(struct dentry *dir, struct rpc_pipe_dir_object *pdo) { struct gss_pipe *gss_pipe = pdo->pdo_data; - struct rpc_pipe *pipe = gss_pipe->pipe; - if (pipe->dentry != NULL) { - rpc_unlink(pipe->dentry); - pipe->dentry = NULL; - } + rpc_unlink(gss_pipe->pipe); } static int gss_pipe_dentry_create(struct dentry *dir, |
