arch: x86: Fix 14.4 guideline violation

The controlling expression of an if statement has to be an
essentially boolean type.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-04-02 16:54:27 -07:00 committed by Anas Nashif
commit 85b2bd63c1

View file

@ -1139,7 +1139,7 @@ static void identity_map_remove(void)
* zero the top-level table entries corresponding to the
* physical mapping.
*/
while (size) {
while (size != 0U) {
pentry_t *entry = get_entry_ptr(z_x86_kernel_ptables, pos, 0);
/* set_pte */