mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
drm/amd/display: Add a default case for dc_status_to_str
[Why&How] If a parsed dc_status case is not covered by the dc_status_to_str, the switch case is skipped, and the function returns "Unexpected status error". This causes build failures when new dc_status enums are introduced. Changing the 'return "Unexpected status error"' into default resolves it. Signed-off-by: Ivan Lipski <ivan.lipski@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
989bdec8ca
commit
470d1ae31d
|
|
@ -272,9 +272,9 @@ char *dc_status_to_str(enum dc_status status)
|
|||
return "Fail DP Tunnel BW validation";
|
||||
case DC_ERROR_UNEXPECTED:
|
||||
return "Unexpected error";
|
||||
default:
|
||||
return "Unexpected status error";
|
||||
}
|
||||
|
||||
return "Unexpected status error";
|
||||
}
|
||||
|
||||
char *dc_pixel_encoding_to_str(enum dc_pixel_encoding pixel_encoding)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user