summaryrefslogtreecommitdiffstats
path: root/sound/i2c/tea6330t.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-06-11 17:52:23 +0100
committerTakashi Iwai <tiwai@suse.de>2021-06-12 09:32:14 +0200
commite094b22c8d519e5d5417a57d6f6ddc1b5f0aefaf (patch)
treef75d3bc5d8af45a7c9087ba4a5954ab876faad03 /sound/i2c/tea6330t.c
parent3b86ec63c06147d24a1b48ba0caab5d051cc0d02 (diff)
downloadlinux-e094b22c8d519e5d5417a57d6f6ddc1b5f0aefaf.tar.bz2
ALSA: i2c: tea6330t: Remove redundant initialization of variable err
The variable err is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20210611165223.38983-1-colin.king@canonical.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/i2c/tea6330t.c')
-rw-r--r--sound/i2c/tea6330t.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/i2c/tea6330t.c b/sound/i2c/tea6330t.c
index 742d0f724375..037d6293f728 100644
--- a/sound/i2c/tea6330t.c
+++ b/sound/i2c/tea6330t.c
@@ -284,7 +284,7 @@ int snd_tea6330t_update_mixer(struct snd_card *card,
struct tea6330t *tea;
const struct snd_kcontrol_new *knew;
unsigned int idx;
- int err = -ENOMEM;
+ int err;
u8 default_treble, default_bass;
unsigned char bytes[7];