stdio: Drop brackets around &devs.list
These brackets are not needed. Drop them.
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/common/stdio.c b/common/stdio.c
index 1921dc6..d67ea60 100644
--- a/common/stdio.c
+++ b/common/stdio.c
@@ -103,7 +103,7 @@
*/
struct list_head* stdio_get_list(void)
{
- return &(devs.list);
+ return &devs.list;
}
/**
@@ -165,7 +165,7 @@
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 @@
_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 @@
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 @@
#endif /* CONFIG_NEEDS_MANUAL_RELOC */
/* Initialize the list */
- INIT_LIST_HEAD(&(devs.list));
+ INIT_LIST_HEAD(&devs.list);
return 0;
}