style: add braces around if/while statements
Per guidelines, all statements should have braces around them. We do not have a CI check for this, so a few went in unnoticed. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
912e117e9e
commit
4c32258606
63 changed files with 281 additions and 195 deletions
|
@ -166,8 +166,9 @@ static int adt7420_probe(struct device *dev)
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (value != ADT7420_DEFAULT_ID)
|
||||
if (value != ADT7420_DEFAULT_ID) {
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
ret = i2c_reg_write_byte(drv_data->i2c, cfg->i2c_addr,
|
||||
ADT7420_REG_CONFIG, ADT7420_CONFIG_RESOLUTION |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue