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 e72f55428f0b..223dc0636fe5 100644
--- a/sound/soc/soc-cache.c
+++ b/sound/soc/soc-cache.c
@@ -39,7 +39,8 @@ static bool snd_soc_set_cache_val(void *base, unsigned int idx,
39 break; 39 break;
40 } 40 }
41 default: 41 default:
42 BUG(); 42 WARN(1, "Invalid word_size %d\n", word_size);
43 break;
43 } 44 }
44 return false; 45 return false;
45} 46}
@@ -60,7 +61,8 @@ static unsigned int snd_soc_get_cache_val(const void *base, unsigned int idx,
60 return cache[idx]; 61 return cache[idx];
61 } 62 }
62 default: 63 default:
63 BUG(); 64 WARN(1, "Invalid word_size %d\n", word_size);
65 break;
64 } 66 }
65 /* unreachable */ 67 /* unreachable */
66 return -1; 68 return -1;