lkml.org 
[lkml]   [2021]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 07/23] ASoC: da7219-aad: remove useless initialization
    Date
    cppcheck warning:

    sound/soc/codecs/da7219-aad.c:118:22: style: Variable 'ret' is
    assigned a value that is never used. [unreadVariable]
    int report = 0, ret = 0;
    ^

    Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
    ---
    sound/soc/codecs/da7219-aad.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/sound/soc/codecs/da7219-aad.c b/sound/soc/codecs/da7219-aad.c
    index 48081d71c22c..7998fdd3b378 100644
    --- a/sound/soc/codecs/da7219-aad.c
    +++ b/sound/soc/codecs/da7219-aad.c
    @@ -115,7 +115,7 @@ static void da7219_aad_hptest_work(struct work_struct *work)

    __le16 tonegen_freq_hptest;
    u8 pll_srm_sts, pll_ctrl, gain_ramp_ctrl, accdet_cfg8;
    - int report = 0, ret = 0;
    + int report = 0, ret;

    /* Lock DAPM, Kcontrols affected by this test and the PLL */
    snd_soc_dapm_mutex_lock(dapm);
    --
    2.25.1
    \
     
     \ /
      Last update: 2021-03-12 19:25    [W:2.667 / U:0.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site