From: Srinivasan Shanmugam Date: Wed, 9 Aug 2023 09:42:31 +0000 (+0530) Subject: drm/radeon: Fix multiple line dereference in 'atom_iio_execute' X-Git-Tag: v6.6.17~3937^2~6^2~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba4c1d772c26ee91ea308c1b68f4f58a38de2aa5;p=platform%2Fkernel%2Flinux-rpi.git drm/radeon: Fix multiple line dereference in 'atom_iio_execute' Fixes the following: WARNING: Avoid multiple line dereference - prefer 'ctx->io_attr' + ((ctx-> + io_attr >> CU8(base + 2)) & (0xFFFFFFFF >> (32 - Cc: Guchun Chen Cc: Christian König Cc: Alex Deucher Cc: "Pan, Xinhui" Signed-off-by: Srinivasan Shanmugam Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c index 93acb0e..ceb6d77 100644 --- a/drivers/gpu/drm/radeon/atom.c +++ b/drivers/gpu/drm/radeon/atom.c @@ -163,13 +163,9 @@ static uint32_t atom_iio_execute(struct atom_context *ctx, int base, ~((0xFFFFFFFF >> (32 - CU8(base + 1))) << CU8(base + 3)); temp |= - ((ctx-> - io_attr >> CU8(base + 2)) & (0xFFFFFFFF >> (32 - - CU8 - (base - + - 1)))) - << CU8(base + 3); + ((ctx->io_attr >> CU8(base + 2)) & + (0xFFFFFFFF >> (32 - CU8(base + 1)))) << + CU8(base + 3); base += 4; break; case ATOM_IIO_END: