aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2024-01-24 17:21:16 +0100
committerBartosz Golaszewski <[email protected]>2024-02-12 10:51:10 +0100
commit3c7a47f6c5f0d3e3c6149b7eb920f420a741e969 (patch)
treef6dbfaec964b3d7b1b4e65de86f97eba4823a52a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentf4e14d45d7fe95f6c1c136baf9e232234669dfed (diff)
gpio: cdev: don't access gdev->chip if it's not needed
The variable holding the number of GPIO lines is duplicated in GPIO device so read it instead of unnecessarily dereferencing the chip pointer. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Acked-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions