Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Takashi Iwai
e094b22c 3b86ec63

+1 -1
+1 -1
sound/i2c/tea6330t.c
··· 284 284 struct tea6330t *tea; 285 285 const struct snd_kcontrol_new *knew; 286 286 unsigned int idx; 287 - int err = -ENOMEM; 287 + int err; 288 288 u8 default_treble, default_bass; 289 289 unsigned char bytes[7]; 290 290