diff options
author | Eric Dong <eric.dong@intel.com> | 2020-01-07 08:48:17 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-01-08 00:32:15 +0000 |
commit | 70911f1f4aee0366b6122f2b90d367ec0f066beb (patch) | |
tree | 4bb1ffc783f851084c96d2f5a0b64bc28d48ef1b /BaseTools/Source/Python/Table/TableFile.py | |
parent | 4bb34b6df1c8dbbb0bab65dc1838b8196568aec6 (diff) | |
download | edk2-70911f1f4aee0366b6122f2b90d367ec0f066beb.tar.gz edk2-70911f1f4aee0366b6122f2b90d367ec0f066beb.tar.bz2 edk2-70911f1f4aee0366b6122f2b90d367ec0f066beb.zip |
UefiCpuPkg/PiSmmCpuDxeSmm: improve the coding style
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2434
Current code use below loops to enumerate the CPUs:
for (Index = mMaxNumberOfCpus; Index-- > 0;) {
it has no issue but not easy for the developers to read the code.
Update above code to below style,
for (Index = 0; Index < mMaxNumberOfCpus; Index++) {
It make the developers easy to read and consistent with other
similar cases in this driver.
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Table/TableFile.py')
0 files changed, 0 insertions, 0 deletions