]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ice1712: remove redundant assignment to new
authorColin Ian King <colin.i.king@gmail.com>
Fri, 5 Aug 2022 12:04:39 +0000 (13:04 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 5 Aug 2022 13:06:36 +0000 (15:06 +0200)
commitfb9a4bf09516c46650b3b390fc070cc6d6aa0c42
tree7037e929a5b9e667bd9b85ce2b49689c7a4cd08f
parent510f518338c79813a9d35ea70863feeea774a07e
ALSA: ice1712: remove redundant assignment to new

The variable new is initialized with a value but it is never read. It is
being re-assigned a new value in every case path in the following switch
statement. The assignment is redundant and can be removed.

Cleans up clang scan build warning:
sound/pci/ice1712/quartet.c:569:8: warning: Although the value stored
to 'new' is used in the enclosing expression, the value is never actually
read from 'new' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220805120439.2341600-1-colin.i.king@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ice1712/quartet.c