drivers: Add 'U' to unsigned variable assignments

Add 'U' to a value when assigning it to an unsigned variable.
MISRA-C rule 7.2

Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
Patrik Flykt 2018-11-29 11:12:22 -08:00 committed by Anas Nashif
commit 8ff96b5a57
172 changed files with 693 additions and 693 deletions

View file

@ -35,9 +35,9 @@ int lsm9ds0_gyro_trigger_set(struct device *dev,
gpio_pin_disable_callback(data->gpio_drdy,
config->gpio_drdy_int_pin);
state = 0;
state = 0U;
if (handler) {
state = 1;
state = 1U;
}
data->handler_drdy = handler;