summaryrefslogtreecommitdiff
path: root/sound/soc/sh
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2017-10-31 03:38:36 +0300
committerMark Brown <broonie@kernel.org>2017-10-31 14:06:35 +0300
commitb12f1e3a798e19727ca632d92abe619b418ad0d0 (patch)
tree32d29ea0639c804198ef2b41697fe8a6da225547 /sound/soc/sh
parent138f878647f2ac0d7700f669b860cb130306e062 (diff)
downloadlinux-b12f1e3a798e19727ca632d92abe619b418ad0d0.tar.xz
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>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r--sound/soc/sh/rcar/core.c6
1 files 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;