Message ID | 20210215200501.90697-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Accepted |
Commit | ff5687854323533668ec06dd38808bae9a984f68 |
Headers | show |
Series | [next] ASoC: codecs: lpass-rx-macro: remove redundant initialization of variable hph_pwr_mode | expand |
On 15/02/2021 20:05, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > 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> > --- Thanks for the patch! LGTM, Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > sound/soc/codecs/lpass-rx-macro.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c > index 8c04b3b2c907..76909c50d7b9 100644 > --- a/sound/soc/codecs/lpass-rx-macro.c > +++ b/sound/soc/codecs/lpass-rx-macro.c > @@ -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; >
On Mon, 15 Feb 2021 20:05:01 +0000, Colin King wrote: > 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. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: codecs: lpass-rx-macro: remove redundant initialization of variable hph_pwr_mode commit: 7f7d1c4fce10ca68e87165898e6232353e4be1af All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index 8c04b3b2c907..76909c50d7b9 100644 --- a/sound/soc/codecs/lpass-rx-macro.c +++ b/sound/soc/codecs/lpass-rx-macro.c @@ -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;