Skip to content

Commit

Permalink
drm/arise: remove extraneous parentheses around the comparison
Browse files Browse the repository at this point in the history
Fix follow error with clang-19:

drivers/gpu/drm/arise/cbios/Device/Monitor/CBiosHDMIMonitor.c:200:44: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
  200 |         if((pAVIInfoFrameData->ColorFormat == 0))//RGB
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/gpu/drm/arise/cbios/Device/Monitor/CBiosHDMIMonitor.c:200:44: note: remove extraneous parentheses around the comparison to silence this warning
  200 |         if((pAVIInfoFrameData->ColorFormat == 0))//RGB
      |            ~                               ^   ~
drivers/gpu/drm/arise/cbios/Device/Monitor/CBiosHDMIMonitor.c:200:44: note: use '=' to turn this equality comparison into an assignment
  200 |         if((pAVIInfoFrameData->ColorFormat == 0))//RGB
      |                                            ^~
      |                                            =
1 error generated.

Signed-off-by: WangYuli <[email protected]>
  • Loading branch information
Avenger-285714 committed Nov 25, 2024
1 parent d5c66a0 commit 6d4a0c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static CBIOS_VOID cbHDMIMonitor_GenerateAVIInfoFrameData(PCBIOS_EXTENSION_COMMON

if(bIsCEAMode && VICCode > 1)
{
if((pAVIInfoFrameData->ColorFormat == 0))//RGB
if(pAVIInfoFrameData->ColorFormat == 0)//RGB
{
if((pModeParams->IsAdobe) && pModeParams->ColorimetryCaps.IsSupportAdobeRGB)
{
Expand Down

0 comments on commit 6d4a0c1

Please sign in to comment.