[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190524213351.24594-1-colin.king@canonical.com>
Date: Fri, 24 May 2019 22:33:51 +0100
From: Colin King <colin.king@...onical.com>
To: Clemens Ladisch <clemens@...isch.de>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH][next] ALSA: firewire-lib: remove redundant assignment to cip_header
From: Colin Ian King <colin.king@...onical.com>
The assignement to cip_header is redundant as the value never
read and it is being re-assigned in the if and else paths of
the following if statement. Clean up the code by removing it.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
sound/firewire/amdtp-stream.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/firewire/amdtp-stream.c b/sound/firewire/amdtp-stream.c
index 2d9c764061d1..4236955bbf57 100644
--- a/sound/firewire/amdtp-stream.c
+++ b/sound/firewire/amdtp-stream.c
@@ -675,7 +675,6 @@ static int handle_in_packet(struct amdtp_stream *s, unsigned int cycle,
return -EIO;
}
- cip_header = ctx_header + 2;
if (!(s->flags & CIP_NO_HEADER)) {
cip_header = &ctx_header[2];
err = check_cip_header(s, cip_header, payload_length,
--
2.20.1
Powered by blists - more mailing lists