all: Add 'U' suffix when using unsigned variables

Add a 'U' suffix to values when computing and comparing against
unsigned variables.

Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
Patrik Flykt 2019-03-26 19:57:45 -06:00 committed by Kumar Gala
commit 24d71431e9
559 changed files with 2331 additions and 2328 deletions

View file

@ -92,7 +92,7 @@ static int mcux_rtc_set_alarm(struct device *dev, u8_t chan_id,
LOG_DBG("Current time is %d ticks", current);
if (chan_id != 0) {
if (chan_id != 0U) {
LOG_ERR("Invalid channel id");
return -EINVAL;
}
@ -123,7 +123,7 @@ static int mcux_rtc_cancel_alarm(struct device *dev, u8_t chan_id)
{
struct mcux_rtc_data *data = dev->driver_data;
if (chan_id != 0) {
if (chan_id != 0U) {
LOG_ERR("Invalid channel id");
return -EINVAL;
}