diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-01-08 10:45:04 -0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-08 17:58:32 +0000 |
commit | 324a7fb02b9e7a226916e3593f756cd85312bae8 (patch) | |
tree | 185b24beeda133f8ace4728476eb63fcdb3335ed /include | |
parent | 4498a3cae5012979bbf3be2064c5ca00fe29109b (diff) | |
download | linux-324a7fb02b9e7a226916e3593f756cd85312bae8.tar.gz linux-324a7fb02b9e7a226916e3593f756cd85312bae8.tar.bz2 linux-324a7fb02b9e7a226916e3593f756cd85312bae8.zip |
ASoC: mxs-saif: Use a signed integer for error value
saif->id and saif->master_id are unsigned, so they can not be negative.
Fix the following warning when building with W=1 option:
sound/soc/mxs/mxs-saif.c: In function 'mxs_saif_probe':
sound/soc/mxs/mxs-saif.c:676:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
sound/soc/mxs/mxs-saif.c:688:3: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
sound/soc/mxs/mxs-saif.c:692:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
Use a signed variable 'ret' to handle the error values.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions