diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-15 04:20:14 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-16 14:17:11 -0500 |
commit | db4e561378b539230feb4db5e7d5d548c2db2cd4 (patch) | |
tree | 99744d37a1c50068c7fa888fddd11901e6c77eae /sound/soc/intel | |
parent | 1cf8dfd90fe50ac660f79d4b94f47b8e721a1178 (diff) |
ASoC: Intel: Skylake: Fix a couple signedness bugs
These need to be signed because they hold negative error codes.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/skylake/skl-sst.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/intel/skylake/skl-sst.c b/sound/soc/intel/skylake/skl-sst.c index 8cd5cdb21fd5..e26f4746afb7 100644 --- a/sound/soc/intel/skylake/skl-sst.c +++ b/sound/soc/intel/skylake/skl-sst.c | |||
@@ -208,7 +208,7 @@ static unsigned int skl_get_errorcode(struct sst_dsp *ctx) | |||
208 | * since get/set_module are called from DAPM context, | 208 | * since get/set_module are called from DAPM context, |
209 | * we don't need lock for usage count | 209 | * we don't need lock for usage count |
210 | */ | 210 | */ |
211 | static unsigned int skl_get_module(struct sst_dsp *ctx, u16 mod_id) | 211 | static int skl_get_module(struct sst_dsp *ctx, u16 mod_id) |
212 | { | 212 | { |
213 | struct skl_module_table *module; | 213 | struct skl_module_table *module; |
214 | 214 | ||
@@ -220,7 +220,7 @@ static unsigned int skl_get_module(struct sst_dsp *ctx, u16 mod_id) | |||
220 | return -EINVAL; | 220 | return -EINVAL; |
221 | } | 221 | } |
222 | 222 | ||
223 | static unsigned int skl_put_module(struct sst_dsp *ctx, u16 mod_id) | 223 | static int skl_put_module(struct sst_dsp *ctx, u16 mod_id) |
224 | { | 224 | { |
225 | struct skl_module_table *module; | 225 | struct skl_module_table *module; |
226 | 226 | ||
@@ -340,7 +340,7 @@ static int skl_load_module(struct sst_dsp *ctx, u16 mod_id, char *guid) | |||
340 | 340 | ||
341 | static int skl_unload_module(struct sst_dsp *ctx, u16 mod_id) | 341 | static int skl_unload_module(struct sst_dsp *ctx, u16 mod_id) |
342 | { | 342 | { |
343 | unsigned int usage_cnt; | 343 | int usage_cnt; |
344 | struct skl_sst *skl = ctx->thread_context; | 344 | struct skl_sst *skl = ctx->thread_context; |
345 | int ret = 0; | 345 | int ret = 0; |
346 | 346 | ||