diff options
author | NeilBrown <neil@brown.name> | 2025-07-16 10:44:19 +1000 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-07-18 11:10:41 +0200 |
commit | 76342c9eb8e28f2e421ec7fb72bb2b9aa4d7dd77 (patch) | |
tree | 9c3ea78508ed1db19cb54e42b7563931e16832f8 /lib/crypto/mpi/mpiutil.c | |
parent | e460bc4d012ce144376264609309b14b84b693ff (diff) |
ovl: simplify gotos in ovl_rename()
Rather than having three separate goto label: out_unlock, out_dput_old,
and out_dput, make use of that fact that dput() happily accepts a NULL
pointer to reduce this to just one goto label: out_unlock.
olddentry and newdentry are initialised to NULL and only set once a
value dentry is found. They are then dput() late in the function.
Suggested-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://lore.kernel.org/20250716004725.1206467-9-neil@brown.name
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions