[alsa-devel] [PATCH 2/5] ASoC: rsnd: tidyup rsnd_mod_next() for loop method

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Tue Oct 31 01:38:36 CET 2017


From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

Let's remove point less "continue"

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
 sound/soc/sh/rcar/core.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 1ef7003..23bf313 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -408,10 +408,8 @@ struct rsnd_mod *rsnd_mod_next(int *iterator,
 	for (; *iterator < max; (*iterator)++) {
 		type = (array) ? array[*iterator] : *iterator;
 		mod = rsnd_io_to_mod(io, type);
-		if (!mod)
-			continue;
-
-		return mod;
+		if (mod)
+			return mod;
 	}
 
 	return NULL;
-- 
1.9.1



More information about the Alsa-devel mailing list