HAOUAS Elyes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/33363
Change subject: nb/amd/amdmct/mct/mctardk3.c: Fix logical 'or' of equal expressions ......................................................................
nb/amd/amdmct/mct/mctardk3.c: Fix logical 'or' of equal expressions
Change-Id: I980b1098b30470bd7b99b3a9920e6069c1e3580e Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M src/northbridge/amd/amdmct/mct/mctardk3.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/63/33363/1
diff --git a/src/northbridge/amd/amdmct/mct/mctardk3.c b/src/northbridge/amd/amdmct/mct/mctardk3.c index ce79a52..a1dfb9ba 100644 --- a/src/northbridge/amd/amdmct/mct/mctardk3.c +++ b/src/northbridge/amd/amdmct/mct/mctardk3.c @@ -99,7 +99,7 @@ } else { val &= valx; if (val != 0) { - if (pDCTstat->Speed == 3 || pDCTstat->Speed == 3) { + if (pDCTstat->Speed == 3) { pDCTstat->CH_ADDR_TMG[dct] &= 0xFFFF00FF; pDCTstat->CH_ADDR_TMG[dct] |= 0x00002F00; }
Jacob Garber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33363 )
Change subject: nb/amd/amdmct/mct/mctardk3.c: Fix logical 'or' of equal expressions ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/33363/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/#/c/33363/1//COMMIT_MSG@11 PS1, Line 11: This is also a Coverity issue, so also add
Found-by: Coverity CID 1229583
Marshall Dawson has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33363 )
Change subject: nb/amd/amdmct/mct/mctardk3.c: Fix logical 'or' of equal expressions ......................................................................
Patch Set 1: Code-Review+2
My initial thought is this might've been a typo (i.e. bug) instead of poor form.
If it's a bug, my preference is to fix it instead of removing the poor form. But I haven't had time to nose around to see where this originally came from, dig into what the DCT settings are doing, if the AMD source might've been corrected later, etc. I also note that on l.75 this code is already limited to ->Speed of 3 or 4.
Jacob Garber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33363 )
Change subject: nb/amd/amdmct/mct/mctardk3.c: Fix logical 'or' of equal expressions ......................................................................
Patch Set 1:
Patch Set 1: Code-Review+2
My initial thought is this might've been a typo (i.e. bug) instead of poor form.
If it's a bug, my preference is to fix it instead of removing the poor form. But I haven't had time to nose around to see where this originally came from, dig into what the DCT settings are doing, if the AMD source might've been corrected later, etc. I also note that on l.75 this code is already limited to ->Speed of 3 or 4.
I had originally proposed the typo idea here
https://review.coreboot.org/c/coreboot/+/33211
though we were unable to decide if it actually was a typo or not.
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33363 )
Change subject: nb/amd/amdmct/mct/mctardk3.c: Fix logical 'or' of equal expressions ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/33363/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/#/c/33363/1//COMMIT_MSG@11 PS1, Line 11:
This is also a Coverity issue, so also add […]
Oops, Sorry I didn't pay attention... it is also found here: https://qa.coreboot.org/job/coreboot-gerrit/96018/console
HAOUAS Elyes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33363 )
Change subject: nb/amd/amdmct/mct/mctardk3.c: Fix logical 'or' of equal expressions ......................................................................
Patch Set 1: Code-Review-1
see https://review.coreboot.org/c/coreboot/+/33211/1/src/northbridge/amd/amdmct/...
HAOUAS Elyes has removed a vote on this change.
Change subject: nb/amd/amdmct/mct/mctardk3.c: Fix logical 'or' of equal expressions ......................................................................
Removed Code-Review-1 by HAOUAS Elyes ehaouas@noos.fr
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33363 )
Change subject: nb/amd/amdmct/mct/mctardk3.c: Fix logical 'or' of equal expressions ......................................................................
Patch Set 2: Code-Review-1
Should be superseded by https://review.coreboot.org/c/coreboot/+/33211
HAOUAS Elyes has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/33363 )
Change subject: nb/amd/amdmct/mct/mctardk3.c: Fix logical 'or' of equal expressions ......................................................................
Abandoned
see 33211