• Pierre-Louis Bossart's avatar
    ASoC: mediatek: mt2701: rename shadowed array · d9cdc133
    Pierre-Louis Bossart authored
    cppcheck warning:
    
    sound/soc/mediatek/mt2701/mt2701-afe-pcm.c:406:36: style: Local
    variable 'memif_data' shadows outer variable [shadowVariable]
     const struct mtk_base_memif_data *memif_data;
                                       ^
    sound/soc/mediatek/mt2701/mt2701-afe-pcm.c:977:41: note: Shadowed
    declaration
    static const struct mtk_base_memif_data memif_data[MT2701_MEMIF_NUM] = {
                                            ^
    sound/soc/mediatek/mt2701/mt2701-afe-pcm.c:406:36: note: Shadow
    variable
     const struct mtk_base_memif_data *memif_data;
                                       ^
    sound/soc/mediatek/mt2701/mt2701-afe-pcm.c:431:36: style: Local
    variable 'memif_data' shadows outer variable [shadowVariable]
     const struct mtk_base_memif_data *memif_data;
                                       ^
    sound/soc/mediatek/mt2701/mt2701-afe-pcm.c:977:41: note: Shadowed
    declaration
    static const struct mtk_base_memif_data memif_data[MT2701_MEMIF_NUM] = {
                                            ^
    sound/soc/mediatek/mt2701/mt2701-afe-pcm.c:431:36: note: Shadow
    variable
     const struct mtk_base_memif_data *memif_data;
                                       ^
    Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    Link: https://lore.kernel.org/r/20210311004904.121205-4-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    d9cdc133
mt2701-afe-pcm.c 39.1 KB