зеркало из https://github.com/microsoft/mu_plus.git
MsWheaPkg/MsWheaEarlyStorageLib: Remove unsigned comparisons to zero
Removes an unnecessary condition since unsigned values are always greater than or equal to 0. Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
This commit is contained in:
Родитель
fd620ac233
Коммит
d9ed9de9e2
|
@ -63,7 +63,7 @@ __MsWheaCMOSRawRead (
|
|||
|
||||
for (i = 0; i < Size; i++) {
|
||||
mIndex = Offset + i;
|
||||
if ((mIndex >= 0) && (mIndex <= 127)) {
|
||||
if (mIndex <= 127) {
|
||||
IoWrite8 (PCAT_RTC_LO_ADDRESS_PORT, mIndex);
|
||||
mBuf[i] = IoRead8 (PCAT_RTC_LO_DATA_PORT);
|
||||
} else {
|
||||
|
@ -114,7 +114,7 @@ __MsWheaCMOSRawWrite (
|
|||
|
||||
for (i = 0; i < Size; i++) {
|
||||
mIndex = Offset + i;
|
||||
if ((mIndex >= 0) && (mIndex <= 127)) {
|
||||
if (mIndex <= 127) {
|
||||
IoWrite8 (PCAT_RTC_LO_ADDRESS_PORT, mIndex);
|
||||
IoWrite8 (PCAT_RTC_LO_DATA_PORT, mBuf[i]);
|
||||
} else {
|
||||
|
@ -160,7 +160,7 @@ __MsWheaCMOSRawClear (
|
|||
|
||||
for (i = 0; i < Size; i++) {
|
||||
mIndex = Offset + i;
|
||||
if ((mIndex >= 0) && (mIndex <= 127)) {
|
||||
if (mIndex <= 127) {
|
||||
IoWrite8 (PCAT_RTC_LO_ADDRESS_PORT, mIndex);
|
||||
IoWrite8 (PCAT_RTC_LO_DATA_PORT, PcdGet8 (PcdMsWheaEarlyStorageDefaultValue));
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче