diff options
author | Jaska Uimonen <jaska.uimonen@intel.com> | 2019-08-22 00:11:38 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-08-22 18:32:16 +0100 |
commit | b2f3e0c9e4ee2e07fd880cc0c4da20c42d633d4b (patch) | |
tree | fcc120a5153bcabd0104230260a16ce6a410c92a /sound/soc/soc-core.c | |
parent | 8d92bb516831e80fac916701447ee6e9f0a6f0f2 (diff) | |
download | lwn-b2f3e0c9e4ee2e07fd880cc0c4da20c42d633d4b.tar.gz lwn-b2f3e0c9e4ee2e07fd880cc0c4da20c42d633d4b.zip |
ASoC: SOF: topology: fix get control data return type and arguments
sof_get_control_data returns negative values even though the return
value is defined unsigned (size_t). So change the return value type to
int and add the data size as pointer argument to sof_get_control_data to
avoid ambiquity in the meaning of the return type.
Fixes: cac974a51ebb ("ASoC: SOF: topology: use set_get_data in process load")
Reported by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
Link: https://lore.kernel.org/r/20190821211138.14618-1-jaska.uimonen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-core.c')
0 files changed, 0 insertions, 0 deletions