From: Charles Keepax Date: Thu, 28 Nov 2013 16:37:51 +0000 (+0000) Subject: ASoC: wm_adsp: Stop region iteration when the desired region is found X-Git-Tag: v3.14-rc1~143^2~1^2~38^2^8~8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d733dc0828cfb230171ae7420a6e8c344ec8473a;p=users%2Fjedix%2Flinux-maple.git ASoC: wm_adsp: Stop region iteration when the desired region is found When locating the memory region relating to a coefficient block written through a bin file we keep processing the list of regions even after we have found the region we require. This patch adds a break, so we don't process redundant list items. Signed-off-by: Charles Keepax Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index 46ec0e9744d4b..b42f9af163c81 100644 --- a/sound/soc/codecs/wm_adsp.c +++ b/sound/soc/codecs/wm_adsp.c @@ -1286,6 +1286,7 @@ static int wm_adsp_load_coeff(struct wm_adsp *dsp) reg = wm_adsp_region_to_reg(mem, reg); reg += offset; + break; } }