]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ASoC: codecs: lpass-rx-macro: remove redundant initialization of variable hph_pwr_mode
authorColin Ian King <colin.king@canonical.com>
Mon, 15 Feb 2021 20:05:01 +0000 (20:05 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:07:17 +0000 (13:07 +0000)
The variable hph_pwr_mode is being initialized with a value that is
never read and it is being updated later with a new value.  The
initialization is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210215200501.90697-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lpass-rx-macro.c

index 8c04b3b2c9075df41fa38cb2ed503ea39bf74a7f..76909c50d7b963b1794b2302d8f933cd3a457aad 100644 (file)
@@ -2038,7 +2038,7 @@ static int rx_macro_load_compander_coeff(struct snd_soc_component *component,
 {
        u16 comp_coeff_lsb_reg, comp_coeff_msb_reg;
        int i;
-       int hph_pwr_mode = HPH_LOHIFI;
+       int hph_pwr_mode;
 
        if (!rx->comp_enabled[comp])
                return 0;