]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
stdio: Drop brackets around &devs.list
authorSimon Glass <sjg@chromium.org>
Tue, 11 Aug 2020 17:23:40 +0000 (11:23 -0600)
committerTom Rini <trini@konsulko.com>
Sun, 23 Aug 2020 17:43:10 +0000 (13:43 -0400)
These brackets are not needed. Drop them.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/stdio.c

index 1921dc671946c4ac17862dc2d7c314107566de55..d67ea60d6c6d101b5d200b0eb8947832975483df 100644 (file)
@@ -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;
 }