| From cf9350bbf1368ac62ab014e6af91261dee3f2178 Mon Sep 17 00:00:00 2001 |
| From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Date: Tue, 31 Oct 2017 00:38:36 +0000 |
| Subject: [PATCH 0146/1795] ASoC: rsnd: tidyup rsnd_mod_next() for loop method |
| |
| Let's remove point less "continue" |
| |
| Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> |
| Signed-off-by: Mark Brown <broonie@kernel.org> |
| (cherry picked from commit b12f1e3a798e19727ca632d92abe619b418ad0d0) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| --- |
| 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 b338c0009506..8fc3bf2b20f5 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; |
| -- |
| 2.19.0 |
| |