techpack: audio: aw882xxacf: Remove unused variables

Change-Id: I493cde9bc28423badb1c3fd8d03c38e38b8a8128
Signed-off-by: electimon <electimon@gmail.com>
This commit is contained in:
electimon 2023-06-11 16:35:00 -04:00 • committed by Michael Bestas
commit e2e1ee4198
No known key found for this signature in database

View file

@ -1142,7 +1142,9 @@ static int aw882xx_set_rx_en(struct snd_kcontrol *kcontrol,
{
int ret = -EINVAL;
uint32_t ctrl_value = 0;
#ifdef CONFIG_AW882XX_ALGO_BIN_PARAMS
struct aw_device *aw_dev = NULL;
#endif
aw_snd_soc_codec_t *codec =
aw_componet_codec_ops.kcontrol_codec(kcontrol);
struct aw882xx *aw882xx =
@ -1151,7 +1153,9 @@ static int aw882xx_set_rx_en(struct snd_kcontrol *kcontrol,
aw_dev_dbg(aw882xx->dev, "ucontrol->value.integer.value[0]=%ld",
ucontrol->value.integer.value[0]);
#ifdef CONFIG_AW882XX_ALGO_BIN_PARAMS
aw_dev = aw882xx->aw_pa;
#endif
ctrl_value = ucontrol->value.integer.value[0];
ret = aw_dev_set_afe_module_en(AW_RX_MODULE, ctrl_value);
@ -1333,7 +1337,6 @@ static int aw882xx_set_spin(struct snd_kcontrol *kcontrol,
{
int ret = -EINVAL;
uint32_t ctrl_value = 0;
struct aw_device *aw_dev;
aw_snd_soc_codec_t *codec =
aw_componet_codec_ops.kcontrol_codec(kcontrol);
struct aw882xx *aw882xx =
@ -1342,8 +1345,6 @@ static int aw882xx_set_spin(struct snd_kcontrol *kcontrol,
aw_dev_dbg(aw882xx->dev, "ucontrol->value.integer.value[0]=%ld",
ucontrol->value.integer.value[0]);
aw_dev = aw882xx->aw_pa;
ctrl_value = ucontrol->value.integer.value[0];
if (aw882xx->pstream) {
ret = aw_dev_set_spin(ctrl_value);
@ -1360,7 +1361,6 @@ static int aw882xx_set_spin(struct snd_kcontrol *kcontrol,
static int aw882xx_get_spin(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
struct aw_device *aw_dev;
aw_snd_soc_codec_t *codec =
aw_componet_codec_ops.kcontrol_codec(kcontrol);
struct aw882xx *aw882xx =
@ -1368,8 +1368,6 @@ static int aw882xx_get_spin(struct snd_kcontrol *kcontrol,
int ctrl_value;
int ret = -EINVAL;
aw_dev = aw882xx->aw_pa;
if (aw882xx->pstream) {
ret = aw_dev_get_spin(&ctrl_value);
if (ret) {