Skip to content

Commit 0ecc71c

Browse files
nashifcarlescufi
authored andcommitted
i2c_shell: Tidy up the code style
Fix some code-style nits in this file. Signed-off-by: Anas Nashif <[email protected]> Signed-off-by: Simon Glass <[email protected]>
1 parent 3bfc765 commit 0ecc71c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/i2c/i2c_shell.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ static void device_name_get(size_t idx, struct shell_static_entry *entry)
9898

9999
entry->syntax = NULL;
100100
entry->handler = NULL;
101-
entry->help = NULL;
101+
entry->help = NULL;
102102
entry->subcmd = &dsub_device_name;
103103

104104
for (dev = __device_start; dev != __device_end; dev++) {
105105
if ((dev->driver_api != NULL) &&
106-
strstr(dev->name, I2C_DEVICE_PREFIX) != NULL &&
107-
strcmp(dev->name, "") && (dev->name != NULL)) {
106+
strstr(dev->name, I2C_DEVICE_PREFIX) != NULL &&
107+
strcmp(dev->name, "") && (dev->name != NULL)) {
108108
if (idx == device_idx) {
109109
entry->syntax = dev->name;
110110
break;

0 commit comments

Comments
 (0)