diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2023-09-14 17:08:52 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-09-14 17:29:43 +0300 |
commit | 72ca56664e483de991ae4afa623e54570f81ebde (patch) | |
tree | 3ca2e65ccd47c0ab5376973fa23e29c54638dbed /sound/pci/hda | |
parent | 26f7111abd8e15726c93bafe16a349f1db2f14e0 (diff) | |
download | linux-72ca56664e483de991ae4afa623e54570f81ebde.tar.xz |
ALSA: hda: cs35l56: Don't 'return ret' if ret is always zero
The final return in cs35l56_hda_posture_get() was returning the
value of 'ret', but ret is always zero at this point. So this
can be a simple 'return 0'.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230914140852.7112-1-rf@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/cs35l56_hda.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/cs35l56_hda.c b/sound/pci/hda/cs35l56_hda.c index 9e4976bdb5e0..bc75865b5de8 100644 --- a/sound/pci/hda/cs35l56_hda.c +++ b/sound/pci/hda/cs35l56_hda.c @@ -218,7 +218,7 @@ static int cs35l56_hda_posture_get(struct snd_kcontrol *kcontrol, ucontrol->value.integer.value[0] = pos; - return ret; + return 0; } static int cs35l56_hda_posture_put(struct snd_kcontrol *kcontrol, |