diff options
-rwxr-xr-x | sound/soc/codecs/max9867.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c index f371a52fe29d..2a22fddeb6af 100755 --- a/sound/soc/codecs/max9867.c +++ b/sound/soc/codecs/max9867.c | |||
@@ -156,6 +156,8 @@ static inline int get_ni_value(int mclk, int rate) | |||
156 | if (ni_div[i].mclk >= mclk) | 156 | if (ni_div[i].mclk >= mclk) |
157 | break; | 157 | break; |
158 | } | 158 | } |
159 | if (i == ARRAY_SIZE(ni_div)) | ||
160 | return -EINVAL; | ||
159 | 161 | ||
160 | switch (rate) { | 162 | switch (rate) { |
161 | case 8000: | 163 | case 8000: |