i2c_shell: Tidy up the code style
Fix some code-style nits in this file.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/drivers/i2c/i2c_shell.c b/drivers/i2c/i2c_shell.c
index 696df5f..e97518c 100644
--- a/drivers/i2c/i2c_shell.c
+++ b/drivers/i2c/i2c_shell.c
@@ -98,13 +98,13 @@
entry->syntax = NULL;
entry->handler = NULL;
- entry->help = NULL;
+ entry->help = NULL;
entry->subcmd = &dsub_device_name;
for (dev = __device_start; dev != __device_end; dev++) {
if ((dev->driver_api != NULL) &&
- strstr(dev->name, I2C_DEVICE_PREFIX) != NULL &&
- strcmp(dev->name, "") && (dev->name != NULL)) {
+ strstr(dev->name, I2C_DEVICE_PREFIX) != NULL &&
+ strcmp(dev->name, "") && (dev->name != NULL)) {
if (idx == device_idx) {
entry->syntax = dev->name;
break;