i2c: shell: add braces around if statement
Add braces around if statements per coding guideline.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/drivers/i2c/i2c_shell.c b/drivers/i2c/i2c_shell.c
index 0749345..b3fd0fc 100644
--- a/drivers/i2c/i2c_shell.c
+++ b/drivers/i2c/i2c_shell.c
@@ -110,8 +110,9 @@
dev_addr = strtol(argv[2], NULL, 16);
reg_addr = strtol(argv[3], NULL, 16);
num_bytes = argc - 4;
- if (num_bytes < 0)
+ if (num_bytes < 0) {
return 0;
+ }
if (num_bytes > MAX_I2C_BYTES) {
num_bytes = MAX_I2C_BYTES;
}