diff options
| author | NeilBrown <[email protected]> | 2025-07-16 00:44:19 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-07-18 09:10:41 +0000 |
| commit | 76342c9eb8e28f2e421ec7fb72bb2b9aa4d7dd77 (patch) | |
| tree | 9c3ea78508ed1db19cb54e42b7563931e16832f8 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | ovl: narrow locking in ovl_create_over_whiteout() (diff) | |
| download | kernel-76342c9eb8e28f2e421ec7fb72bb2b9aa4d7dd77.tar.gz kernel-76342c9eb8e28f2e421ec7fb72bb2b9aa4d7dd77.zip | |
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 <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Link: https://lore.kernel.org/[email protected]
Reviewed-by: Amir Goldstein <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
