Merge tag 'firewire-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394...
[firefly-linux-kernel-4.4.55.git] / sound / soc / soc-cache.c
index 1b6663f45b3435c40fe751491c2c228121c62e00..375dc6dfba4e8be704a52cd5a1c7e0780321d2e5 100644 (file)
@@ -36,7 +36,8 @@ static bool snd_soc_set_cache_val(void *base, unsigned int idx,
                break;
        }
        default:
-               BUG();
+               WARN(1, "Invalid word_size %d\n", word_size);
+               break;
        }
        return false;
 }
@@ -57,7 +58,8 @@ static unsigned int snd_soc_get_cache_val(const void *base, unsigned int idx,
                return cache[idx];
        }
        default:
-               BUG();
+               WARN(1, "Invalid word_size %d\n", word_size);
+               break;
        }
        /* unreachable */
        return -1;