All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [PATCH 5/6] stdio: Drop brackets around &devs.list
Date: Fri, 17 Jul 2020 21:03:18 -0600	[thread overview]
Message-ID: <20200718030319.144468-6-sjg@chromium.org> (raw)
In-Reply-To: <20200718030319.144468-1-sjg@chromium.org>

These brackets are not needed. Drop them.

Signed-off-by: Simon Glass <sjg@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

  parent reply	other threads:[~2020-07-18  3:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-18  3:03 [PATCH 0/6] stdio: Clean up stdio.c Simon Glass
2020-07-18  3:03 ` [PATCH 1/6] Convert CONFIG_SYS_DEVICE_NULLDEV to Kconfig Simon Glass
2020-07-18 18:04   ` Ovidiu Panait
2020-07-26 14:54     ` Simon Glass
2020-07-18  3:03 ` [PATCH 2/6] stdio: Tidy up use of CONFIG_SYS_DEVICE_NULLDEV Simon Glass
2020-07-18  3:03 ` [PATCH 3/6] stdio: Drop #ifdefs in the header file Simon Glass
2020-07-18  3:03 ` [PATCH 4/6] stdio: Update to use compiler for Kconfig checks Simon Glass
2020-08-03 22:57   ` Tom Rini
2020-08-04  2:18     ` Tom Rini
2020-08-04 13:37       ` Simon Glass
2020-08-04 13:46         ` Tom Rini
2020-08-04 14:05           ` Simon Glass
2020-07-18  3:03 ` Simon Glass [this message]
2020-07-18  3:03 ` [PATCH 6/6] stdio: Tidy up the coding style Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200718030319.144468-6-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.