• Fabio Estevam's avatar
    ASoC: mxs-saif: Use a signed integer for error value · 324a7fb0
    Fabio Estevam authored
    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: default avatarFabio Estevam <fabio.estevam@freescale.com>
    Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    324a7fb0
mxs-saif.c 20.1 KB