提交 0e023687 编写于 作者: C Colin Ian King 提交者: Takashi Iwai

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: NColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200208224206.38540-1-colin.king@canonical.comSigned-off-by: NTakashi Iwai <tiwai@suse.de>
上级 f18b529a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册