Commit f5884c7d authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Anas Nashif
Browse files

lib: sem: Code guideline fixes



Fixes violations code guideline related with essential types rules:

- use bool when the data nature is Boolean

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
Signed-off-by: default avatarAbramo Bagnara <abramo.bagnara@bugseng.com>
parent 672934d2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ static inline atomic_t bounded_dec(atomic_t *val, atomic_t minimum)
		}

		new_value = old_value - 1;
	} while (atomic_cas(val, old_value, new_value) == 0);
	} while (!atomic_cas(val, old_value, new_value));

	return old_value;
}
@@ -40,7 +40,7 @@ static inline atomic_t bounded_inc(atomic_t *val, atomic_t minimum,

		new_value = old_value < minimum ?
			    minimum + 1 : old_value + 1;
	} while (atomic_cas(val, old_value, new_value) == 0U);
	} while (!atomic_cas(val, old_value, new_value));

	return old_value;
}