aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
diff options
context:
space:
mode:
authorLukas Bulwahn <[email protected]>2022-03-14 16:03:21 +0100
committerJens Axboe <[email protected]>2022-03-15 14:41:59 -0600
commit79d45f57a19537a1ec6ebf836944e968b154f86e (patch)
tree5975291465ee722621c16abbd36cc9c7e767c4e6 /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
parent6b2b04590b51aa4cf395fcd185ce439cab5961dc (diff)
sr: simplify the local variable initialization in sr_block_open()
Commit 01d0c698536f ("sr: implement ->free_disk to simplify refcounting") refactored sr_block_open(), initialized one variable with a duplicate assignment (probably an unintended copy & paste duplication) and turned one error case into an early return, which makes the initialization of the return variable needless. So, simplify the local variable initialization in sr_block_open() to make the code a bit more clear. No functional change. No change in resulting object code. Signed-off-by: Lukas Bulwahn <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions