aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2021-07-07 11:36:31 +0200
committerMaxime Ripard <[email protected]>2021-07-29 10:41:16 +0200
commitf143778d90829ac37e6a481772dc0f26e3071de7 (patch)
tree48829b2ae55d9bd6bfa7c981613430ce160804c0 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentd793b8f732d6acbc6390be7342fb2e92b069dc7f (diff)
drm/vc4: hdmi: Remove redundant variables
The vc4_hdmi_audio_prepare function and the functions it's calling have in several occurences multiple dereferences of either the sample rate or the number of channels. It turns out that these variables are also passed through the hdmi codec parameters structure. Convert all the users to use this structure, and if it's used multiple times use a variable to store it instead of dereferencing it every time. Reviewed-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions