• Kuninori Morimoto's avatar
    ASoC: rsnd: cleanup ppcheck warning for ssi.c · 0779baa8
    Kuninori Morimoto authored
    This patch cleanups below ppcheck warning.
    
    sound/soc/sh/rcar/ssi.c:170:19: style: The scope of the variable 'mod' can be reduced. [variableScope]
     struct rsnd_mod *mod;
                      ^
    sound/soc/sh/rcar/ssi.c:535:6: style: The scope of the variable 'i' can be reduced. [variableScope]
     int i;
         ^
    sound/soc/sh/rcar/ssi.c:1212:19: style: The scope of the variable 'mod' can be reduced. [variableScope]
     struct rsnd_mod *mod;
                      ^
    sound/soc/sh/rcar/ssi.c:328:16: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned]
     ssi->cr_clk = FORCE | rsnd_rdai_width_to_swl(rdai) |
                   ^
    sound/soc/sh/rcar/ssi.c:387:12: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned]
     cr_own |= FORCE | rsnd_rdai_width_to_swl(rdai);
               ^
    Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
    Link: https://lore.kernel.org/r/87k0qxro2j.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    0779baa8
ssi.c 28.9 KB