summaryrefslogtreecommitdiffstats
path: root/sound/core/info.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-02-08 23:42:06 +0100
committerTakashi Iwai <tiwai@suse.de>2020-02-10 08:30:02 +0100
commit0e023687ca552147a76540377be4c642b1313d53 (patch)
treeb911186243a64b9e8d7b4a61c4978ab86af320ba /sound/core/info.c
parentALSA: ali5451: remove redundant variable capture_flag (diff)
downloadlinux-0e023687ca552147a76540377be4c642b1313d53.tar.xz
linux-0e023687ca552147a76540377be4c642b1313d53.zip
ALSA: info: remove redundant assignment to variable c
Variable c is being assigned with the value -1 that is never read, it is assigned a new value in a following while-loop. 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/20200208224206.38540-1-colin.king@canonical.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/info.c')
-rw-r--r--sound/core/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/info.c b/sound/core/info.c
index ca87ae4c30ba..8c6bc5241df5 100644
--- a/sound/core/info.c
+++ b/sound/core/info.c
@@ -604,7 +604,7 @@ int snd_info_card_free(struct snd_card *card)
*/
int snd_info_get_line(struct snd_info_buffer *buffer, char *line, int len)
{
- int c = -1;
+ int c;
if (snd_BUG_ON(!buffer || !buffer->buffer))
return 1;