aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/sh/rcar/scu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sh/rcar/scu.c b/sound/soc/sh/rcar/scu.c
index 1ab1bce6be7f..5e46ef2e8bb8 100644
--- a/sound/soc/sh/rcar/scu.c
+++ b/sound/soc/sh/rcar/scu.c
@@ -68,7 +68,7 @@ static int rsnd_scu_set_route(struct rsnd_priv *priv,
68 return 0; 68 return 0;
69 69
70 id = rsnd_mod_id(mod); 70 id = rsnd_mod_id(mod);
71 if (id < 0 || id > ARRAY_SIZE(routes)) 71 if (id < 0 || id >= ARRAY_SIZE(routes))
72 return -EIO; 72 return -EIO;
73 73
74 /* 74 /*