Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1715946 > unrolled thread

[PATCH 2/2] soc/fsl/qe: Slighly simplify code

Started byChristophe JAILLET <christophe.jaillet@wanadoo.fr>
First post2017-08-20 18:00 +0200
Last post2017-08-20 18:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 2/2] soc/fsl/qe: Slighly simplify code Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2017-08-20 18:00 +0200

#1715946 — [PATCH 2/2] soc/fsl/qe: Slighly simplify code

FromChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Date2017-08-20 18:00 +0200
Subject[PATCH 2/2] soc/fsl/qe: Slighly simplify code
Message-ID<ugANP-rE-7@gated-at.bofh.it>
Return 0 instead of 'ret' (which is 0 at this point) to make the code more
explicit.
Also avoid a useless initialization of 'ret'.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 drivers/soc/fsl/qe/qe_tdm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/soc/fsl/qe/qe_tdm.c b/drivers/soc/fsl/qe/qe_tdm.c
index 6b9647fee512..c90c72ca9e3e 100644
--- a/drivers/soc/fsl/qe/qe_tdm.c
+++ b/drivers/soc/fsl/qe/qe_tdm.c
@@ -42,7 +42,7 @@ int ucc_of_parse_tdm(struct device_node *np, struct ucc_tdm *utdm,
 		     struct ucc_tdm_info *ut_info)
 {
 	const char *sprop;
-	int ret = 0;
+	int ret;
 	u32 val;
 	struct resource *res;
 	struct device_node *np2;
@@ -171,7 +171,7 @@ int ucc_of_parse_tdm(struct device_node *np, struct ucc_tdm *utdm,
 		siram_init_flag = 1;
 	}
 
-	return ret;
+	return 0;
 
 err_miss_siram_property:
 	return ret;
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web