Skip to contentSkip to conversation

media: saa7164: Remove redundant assignment of pointer t

PATCH New Colin King 1 participant 1 message Sep 10, 2021

Subsystems (2)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 media: saa7164: Remove redundant assignment of pointer t

From: Colin Ian King <[email protected]>

The pointer t is being assigned a value that is never read, it is being updated later on inside the for-loop. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")

---
 drivers/media/pci/saa7164/saa7164-api.c | 2 --
 1 file changed, 2 deletions(-)
drivers/media/pci/saa7164/saa7164-api.c +0 -2
index 4ddd0f5b50f1..5526bcc7a9bd 100644
@@ -1057,8 +1057,6 @@ static int saa7164_api_dump_subdevs(struct saa7164_dev *dev, u8 *buf, int len)
 			dprintk(DBGLVL_API, "  numformats   = 0x%x\n",
 				vcoutputtermhdr->numformats);
 
-			t = (struct tmComResDescrHeader *)
-				((struct tmComResDMATermDescrHeader *)(buf + idx));
 			next_offset = idx + (vcoutputtermhdr->len);
 			for (i = 0; i < vcoutputtermhdr->numformats; i++) {
 				t = (struct tmComResDescrHeader *)
Signature · 1 line
2.32.0