From 0ecc71ccb22e3dcaba2a50adec1d2c1f72c373ea Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 10 Jan 2020 09:09:24 -0500 Subject: [PATCH] i2c_shell: Tidy up the code style Fix some code-style nits in this file. Signed-off-by: Anas Nashif Signed-off-by: Simon Glass --- drivers/i2c/i2c_shell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/i2c_shell.c b/drivers/i2c/i2c_shell.c index 696df5f101c..e97518c3d71 100644 --- a/drivers/i2c/i2c_shell.c +++ b/drivers/i2c/i2c_shell.c @@ -98,13 +98,13 @@ static void device_name_get(size_t idx, struct shell_static_entry *entry) 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;