linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] bus: ti-sysc: sysc_check_one_child(): Change return type to void
@ 2019-08-13  7:17 Nishka Dasgupta
  2019-08-13  7:28 ` Roger Quadros
  2019-08-13  7:55 ` [PATCH v3 1/2] " Nishka Dasgupta
  0 siblings, 2 replies; 11+ messages in thread
From: Nishka Dasgupta @ 2019-08-13  7:17 UTC (permalink / raw)
  To: tony, rogerq, linux-kernel; +Cc: Nishka Dasgupta

Change return type of function sysc_check_one_child() from int to void
as it always returns 0. Accordingly, at its callsite, delete the
variable that previously stored the return value.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
---
Changes in v2:
- Remove error variable entirely.
- Change return type of sysc_check_one_child().

 drivers/bus/ti-sysc.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index e6deabd8305d..1c30fa58d70c 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -615,8 +615,8 @@ static void sysc_check_quirk_stdout(struct sysc *ddata,
  * node but children have "ti,hwmods". These belong to the interconnect
  * target node and are managed by this driver.
  */
-static int sysc_check_one_child(struct sysc *ddata,
-				struct device_node *np)
+static void sysc_check_one_child(struct sysc *ddata,
+				 struct device_node *np)
 {
 	const char *name;
 
@@ -633,12 +633,9 @@ static int sysc_check_one_child(struct sysc *ddata,
 static int sysc_check_children(struct sysc *ddata)
 {
 	struct device_node *child;
-	int error;
 
 	for_each_child_of_node(ddata->dev->of_node, child) {
-		error = sysc_check_one_child(ddata, child);
-		if (error)
-			return error;
+		sysc_check_one_child(ddata, child);
 	}
 
 	return 0;
-- 
2.19.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-08-26 15:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-13  7:17 [PATCH v2] bus: ti-sysc: sysc_check_one_child(): Change return type to void Nishka Dasgupta
2019-08-13  7:28 ` Roger Quadros
2019-08-13  7:37   ` Nishka Dasgupta
2019-08-13  7:43     ` Roger Quadros
2019-08-13  7:55 ` [PATCH v3 1/2] " Nishka Dasgupta
2019-08-13  7:55   ` [PATCH v3 2/2] bus: ti-sysc: sysc_check_children(): " Nishka Dasgupta
2019-08-13 11:13     ` Roger Quadros
2019-08-13 11:42       ` Tony Lindgren
2019-08-15  5:46         ` [PATCH v4] bus: ti-sysc: Change return types of functions Nishka Dasgupta
2019-08-15 13:02           ` Roger Quadros
2019-08-26 15:31             ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).