spa: alsa: compress-offload: use spa_assert_not_reached()

Use `spa_assert_not_reached()` instead of `assert(false)`
as it is more descriptive and the error message is clearer.
This commit is contained in:
Barnabás Pőcze 2023-11-05 04:14:29 +01:00
parent e4d1ab0c19
commit 5b128cdbe9

View file

@ -86,7 +86,7 @@ static void emit_node(struct impl *this, const char *device_node, unsigned int d
* hardware that can capture audio is difficult to do. The only hardware
* known is the Wolfson ADSP; the only driver in the kernel that exposes
* Compress-Offload capture devices is the one for that hardware. */
assert(false);
spa_assert_not_reached();
}
info.change_mask = SPA_DEVICE_OBJECT_CHANGE_MASK_PROPS;