MdeModulePkg SataControllerDxe: Use compare logic in if condition
Use compare logic in if condition to fix ECC issue. It is caused by aa4240edff41034d709938a15b42cf4fd3214386. Cc: Hao Wu <hao.a.wu@intel.com> Cc: Dandan Bi <dandan.bi@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
parent
5f46352300
commit
cd69c87383
@ -483,7 +483,7 @@ SataControllerStart (
|
|||||||
}
|
}
|
||||||
MaxPortNumber = 31;
|
MaxPortNumber = 31;
|
||||||
while (MaxPortNumber > 0) {
|
while (MaxPortNumber > 0) {
|
||||||
if (Data32 & (1 << MaxPortNumber)) {
|
if ((Data32 & ((UINT32)1 << MaxPortNumber)) != 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
MaxPortNumber--;
|
MaxPortNumber--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user