提交 db4e5613 编写于 作者: D Dan Carpenter 提交者: Mark Brown

ASoC: Intel: Skylake: Fix a couple signedness bugs

These need to be signed because they hold negative error codes.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by Vinod Koul <vinod.koul@intel.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 1cf8dfd9
...@@ -208,7 +208,7 @@ static unsigned int skl_get_errorcode(struct sst_dsp *ctx) ...@@ -208,7 +208,7 @@ static unsigned int skl_get_errorcode(struct sst_dsp *ctx)
* since get/set_module are called from DAPM context, * since get/set_module are called from DAPM context,
* we don't need lock for usage count * we don't need lock for usage count
*/ */
static unsigned int skl_get_module(struct sst_dsp *ctx, u16 mod_id) static int skl_get_module(struct sst_dsp *ctx, u16 mod_id)
{ {
struct skl_module_table *module; struct skl_module_table *module;
...@@ -220,7 +220,7 @@ static unsigned int skl_get_module(struct sst_dsp *ctx, u16 mod_id) ...@@ -220,7 +220,7 @@ static unsigned int skl_get_module(struct sst_dsp *ctx, u16 mod_id)
return -EINVAL; return -EINVAL;
} }
static unsigned int skl_put_module(struct sst_dsp *ctx, u16 mod_id) static int skl_put_module(struct sst_dsp *ctx, u16 mod_id)
{ {
struct skl_module_table *module; struct skl_module_table *module;
...@@ -340,7 +340,7 @@ static int skl_load_module(struct sst_dsp *ctx, u16 mod_id, char *guid) ...@@ -340,7 +340,7 @@ static int skl_load_module(struct sst_dsp *ctx, u16 mod_id, char *guid)
static int skl_unload_module(struct sst_dsp *ctx, u16 mod_id) static int skl_unload_module(struct sst_dsp *ctx, u16 mod_id)
{ {
unsigned int usage_cnt; int usage_cnt;
struct skl_sst *skl = ctx->thread_context; struct skl_sst *skl = ctx->thread_context;
int ret = 0; int ret = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册