These brackets are not needed. Drop them.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 common/stdio.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/common/stdio.c b/common/stdio.c
index 1921dc6719..d67ea60d6c 100644
--- a/common/stdio.c
+++ b/common/stdio.c
@@ -103,7 +103,7 @@ static void drv_system_init (void)
  */
 struct list_head* stdio_get_list(void)
 {
-       return &(devs.list);
+       return &devs.list;
 }
 
 /**
@@ -165,7 +165,7 @@ struct stdio_dev *stdio_get_by_name(const char *name)
        if (!name)
                return NULL;
 
-       list_for_each(pos, &(devs.list)) {
+       list_for_each(pos, &devs.list) {
                sdev = list_entry(pos, struct stdio_dev, list);
                if (strcmp(sdev->name, name) == 0)
                        return sdev;
@@ -215,7 +215,7 @@ int stdio_register_dev(struct stdio_dev *dev, struct 
stdio_dev **devp)
        _dev = stdio_clone(dev);
        if(!_dev)
                return -ENODEV;
-       list_add_tail(&(_dev->list), &(devs.list));
+       list_add_tail(&_dev->list, &devs.list);
        if (devp)
                *devp = _dev;
 
@@ -251,11 +251,11 @@ int stdio_deregister_dev(struct stdio_dev *dev, int force)
                        sizeof(temp_names[l]));
        }
 
-       list_del(&(dev->list));
+       list_del(&dev->list);
        free(dev);
 
        /* reassign Device list */
-       list_for_each(pos, &(devs.list)) {
+       list_for_each(pos, &devs.list) {
                dev = list_entry(pos, struct stdio_dev, list);
                for (l=0 ; l< MAX_FILES; l++) {
                        if(strcmp(dev->name, temp_names[l]) == 0)
@@ -292,7 +292,7 @@ int stdio_init_tables(void)
 #endif /* CONFIG_NEEDS_MANUAL_RELOC */
 
        /* Initialize the list */
-       INIT_LIST_HEAD(&(devs.list));
+       INIT_LIST_HEAD(&devs.list);
 
        return 0;
 }
-- 
2.28.0.rc0.105.gf9edc3c819-goog

Reply via email to