aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorPaul E. McKenney <[email protected]>2025-04-24 19:28:24 +0000
committerPaul E. McKenney <[email protected]>2025-05-08 23:13:27 +0000
commit4b2cce999c8f5a03916b11b1e4ce192d223ab4f5 (patch)
treefb5143d9c51922242573bc75a02379a7f6133f77 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parentratelimit: Use nolock_ret label to collapse lock-failure code (diff)
downloadkernel-4b2cce999c8f5a03916b11b1e4ce192d223ab4f5.tar.gz
kernel-4b2cce999c8f5a03916b11b1e4ce192d223ab4f5.zip
ratelimit: Use nolock_ret restructuring to collapse common case code
Now that unlock_ret releases the lock, then falls into nolock_ret, which handles ->missed based on the value of ret, the common-case lock-held code can be collapsed into a single "if" statement with a single-statement "then" clause. Yes, we could go further and just assign the "if" condition to ret, but in the immortal words of MSDOS, "Are you sure?". Link: https://lore.kernel.org/all/fbe93a52-365e-47fe-93a4-44a44547d601@paulmck-laptop/ Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Paul E. McKenney <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Kuniyuki Iwashima <[email protected]> Cc: Mateusz Guzik <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: John Ogness <[email protected]> Cc: Sergey Senozhatsky <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions