• Pierre-Louis Bossart's avatar
    ASoC: soc-topology: clarify expression · 47108a61
    Pierre-Louis Bossart authored
    cppcheck warning:
    
    sound/soc/soc-topology.c:1676:52: style: Clarify calculation
    precedence for '&' and '?'. [clarifyCalculation]
       flags & SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_RATES ? 1 : 0;
                                                       ^
    sound/soc/soc-topology.c:1680:55: style: Clarify calculation
    precedence for '&' and '?'. [clarifyCalculation]
       flags & SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_CHANNELS ?
                                                          ^
    sound/soc/soc-topology.c:1685:57: style: Clarify calculation
    precedence for '&' and '?'. [clarifyCalculation]
       flags & SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_SAMPLEBITS ?
                                                            ^
    sound/soc/soc-topology.c:1768:52: style: Clarify calculation
    precedence for '&' and '?'. [clarifyCalculation]
       flags & SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_RATES ? 1 : 0;
                                                       ^
    sound/soc/soc-topology.c:1772:55: style: Clarify calculation
    precedence for '&' and '?'. [clarifyCalculation]
       flags & SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_CHANNELS ?
                                                          ^
    sound/soc/soc-topology.c:1777:57: style: Clarify calculation
    precedence for '&' and '?'. [clarifyCalculation]
       flags & SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_SAMPLEBITS ?
                                                            ^
    sound/soc/soc-topology.c:1782:48: style: Clarify calculation
    precedence for '&' and '?'. [clarifyCalculation]
      flags & SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP ?
                                                   ^
    Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210218221921.88991-6-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    47108a61
soc-topology.c 72.7 KB