diff options
| author | Takashi Iwai <[email protected]> | 2019-05-07 19:39:10 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2019-05-08 06:20:25 +0000 |
| commit | 54d198d5019dd98b9bcb9099a389608d7e2cccad (patch) | |
| tree | 8169236a4c79ef2c7b65690be79bbcdf34d34ca0 /drivers/fpga/fpga-bridge.c | |
| parent | ASoC: rockchip: Fix an uninitialized variable compile warning (diff) | |
| download | kernel-54d198d5019dd98b9bcb9099a389608d7e2cccad.tar.gz kernel-54d198d5019dd98b9bcb9099a389608d7e2cccad.zip | |
ASoC: SOF: Propagate sof_get_ctrl_copy_params() error properly
This fixes a compile warning below by properly handling the error code
from sof_get_ctrl_copy_params():
include/linux/kernel.h:843:43: warning: 'sparams.pl_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
sound/soc/sof/ipc.c:639:34: note: 'sparams.pl_size' was declared here
The function returns an error before setting sparams.pl_size, so it'd
assign an uninitialized value at a later point.
Fixes: 53e0c72d98ba ("ASoC: SOF: Add support for IPC IO between DSP and Host")
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
