aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-03-02 14:05:09 +0000
committerAlex Deucher <[email protected]>2021-03-02 19:17:04 +0000
commit6302aead150e8ffb9abe82683e8e30d519e69024 (patch)
tree1486324ed91e6e9fc53aaa64114e0954303bead2 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h
parentdrm/amdgpu: enable BACO runpm by default on sienna cichlid and navy flounder (diff)
downloadkernel-6302aead150e8ffb9abe82683e8e30d519e69024.tar.gz
kernel-6302aead150e8ffb9abe82683e8e30d519e69024.zip
drm/amd/display: fix the return of the uninitialized value in ret
Currently if stream->signal is neither SIGNAL_TYPE_DISPLAY_PORT_MST or SIGNAL_TYPE_DISPLAY_PORT then variable ret is uninitialized and this is checked for > 0 at the end of the function. Ret should be initialized, I believe setting it to zero is a correct default. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: bd0c064c161c ("drm/amd/display: Add return code instead of boolean for future use") Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h')
0 files changed, 0 insertions, 0 deletions