samples: intel_s1000/i2s: fix uninitialized use warning
One of the return variable is declared and used, but never assigned values. So fix it. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
c6f4a970f1
commit
66aefdbb93
|
@ -292,11 +292,13 @@ static void i2s_stop_audio(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (i2s_trigger(spk_i2s_dev, I2S_DIR_TX, I2S_TRIGGER_STOP)) {
|
ret = i2s_trigger(spk_i2s_dev, I2S_DIR_TX, I2S_TRIGGER_STOP);
|
||||||
|
if (ret) {
|
||||||
LOG_ERR("spk_i2s_dev stop failed with code %d", ret);
|
LOG_ERR("spk_i2s_dev stop failed with code %d", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i2s_trigger(host_i2s_dev, I2S_DIR_RX, I2S_TRIGGER_STOP)) {
|
ret = i2s_trigger(host_i2s_dev, I2S_DIR_RX, I2S_TRIGGER_STOP);
|
||||||
|
if (ret) {
|
||||||
LOG_ERR("host_i2s_dev stop failed with code %d", ret);
|
LOG_ERR("host_i2s_dev stop failed with code %d", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue