aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/soc-cache.c')
-rw-r--r--sound/soc/soc-cache.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c
index 1b6663f45b34..375dc6dfba4e 100644
--- a/sound/soc/soc-cache.c
+++ b/sound/soc/soc-cache.c
@@ -36,7 +36,8 @@ static bool snd_soc_set_cache_val(void *base, unsigned int idx,
36 break; 36 break;
37 } 37 }
38 default: 38 default:
39 BUG(); 39 WARN(1, "Invalid word_size %d\n", word_size);
40 break;
40 } 41 }
41 return false; 42 return false;
42} 43}
@@ -57,7 +58,8 @@ static unsigned int snd_soc_get_cache_val(const void *base, unsigned int idx,
57 return cache[idx]; 58 return cache[idx];
58 } 59 }
59 default: 60 default:
60 BUG(); 61 WARN(1, "Invalid word_size %d\n", word_size);
62 break;
61 } 63 }
62 /* unreachable */ 64 /* unreachable */
63 return -1; 65 return -1;