mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drm/amd/display: adjust bit comparison to be more type safe
Might potentially have truncation problem with the implicit casting Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Eric Yang <Eric.Yang2@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
7aba117ac9
commit
fd9048dd44
1 changed files with 1 additions and 1 deletions
|
@ -441,7 +441,7 @@ void dmub_dcn31_get_diagnostic_data(struct dmub_srv *dmub, struct dmub_diagnosti
|
|||
bool dmub_dcn31_should_detect(struct dmub_srv *dmub)
|
||||
{
|
||||
uint32_t fw_boot_status = REG_READ(DMCUB_SCRATCH0);
|
||||
bool should_detect = fw_boot_status & DMUB_FW_BOOT_STATUS_BIT_DETECTION_REQUIRED;
|
||||
bool should_detect = (fw_boot_status & DMUB_FW_BOOT_STATUS_BIT_DETECTION_REQUIRED) != 0;
|
||||
return should_detect;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue