• Pierre-Louis Bossart's avatar
    ALSA: atmel: ac97: clarify operator precedence · a971b42c
    Pierre-Louis Bossart authored
    Fix cppcheck warnings:
    
    sound/atmel/ac97c.c:478:30: style: Clarify calculation precedence for
    '&' and '?'. [clarifyCalculation]
        casr & AC97C_CSR_OVRUN   ? " OVRUN"   : "",
                                 ^
    sound/atmel/ac97c.c:479:30: style: Clarify calculation precedence for
    '&' and '?'. [clarifyCalculation]
        casr & AC97C_CSR_RXRDY   ? " RXRDY"   : "",
                                 ^
    sound/atmel/ac97c.c:480:30: style: Clarify calculation precedence for
    '&' and '?'. [clarifyCalculation]
        casr & AC97C_CSR_UNRUN   ? " UNRUN"   : "",
                                 ^
    sound/atmel/ac97c.c:481:30: style: Clarify calculation precedence for
    '&' and '?'. [clarifyCalculation]
        casr & AC97C_CSR_TXEMPTY ? " TXEMPTY" : "",
                                 ^
    sound/atmel/ac97c.c:482:30: style: Clarify calculation precedence for
    '&' and '?'. [clarifyCalculation]
        casr & AC97C_CSR_TXRDY   ? " TXRDY"   : "",
                                 ^
    sound/atmel/ac97c.c:524:30: style: Clarify calculation precedence for
    '&' and '?'. [clarifyCalculation]
        cosr & AC97C_CSR_OVRUN   ? " OVRUN"   : "",
                                 ^
    sound/atmel/ac97c.c:525:30: style: Clarify calculation precedence for
    '&' and '?'. [clarifyCalculation]
        cosr & AC97C_CSR_RXRDY   ? " RXRDY"   : "",
                                 ^
    sound/atmel/ac97c.c:526:30: style: Clarify calculation precedence for
    '&' and '?'. [clarifyCalculation]
        cosr & AC97C_CSR_TXEMPTY ? " TXEMPTY" : "",
                                 ^
    sound/atmel/ac97c.c:527:30: style: Clarify calculation precedence for
    '&' and '?'. [clarifyCalculation]
        cosr & AC97C_CSR_TXRDY   ? " TXRDY"   : "",
                                 ^
    Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20200902212133.30964-15-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    a971b42c
ac97c.c 21.9 KB