diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-05-26 15:48:35 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:45:19 +0900 |
commit | 3a21c30ba5bb356dd80f3238060e9f4d481d1474 (patch) | |
tree | acbbcce95b6a1b662f3c31b93525d365b8118a35 /sound | |
parent | f52742be6e908230c6abb5885e401b94b7b20cb7 (diff) |
ASoC: ymu831: Fix overflow when casting int to uint8
The value returned by get_incall_mic() is always used as
int and it may be -ERRNO, so it should not be returned as uint8:
sound/soc/codecs/ymu831/ymu831.c:1652 get_incall_mic() warn: signedness bug returning '(-5)'
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/ymu831/ymu831.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/ymu831/ymu831.c b/sound/soc/codecs/ymu831/ymu831.c index ad547b854230..66a785b19169 100644 --- a/sound/soc/codecs/ymu831/ymu831.c +++ b/sound/soc/codecs/ymu831/ymu831.c @@ -1609,7 +1609,7 @@ static int get_unused_mic_block_on(void) } -static UINT8 get_incall_mic( +static int get_incall_mic( struct snd_soc_codec *codec, int output_path ) |