Skip to contentSkip to conversation

media: davinci: remove redundant assignment to pointer common

PATCH New Colin Ian King 1 participant 1 message Dec 5, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: davinci: remove redundant assignment to pointer common

Pointer common is being assigned a value in a for-loop and the pointer is never read afterwards. The assignment is redundant and can be removed.

---
 drivers/media/platform/davinci/vpif_capture.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/davinci/vpif_capture.c +0 -1
index aba105fa7ef9..8fe55374c5a3 100644
@@ -1467,7 +1467,6 @@ static int vpif_probe_complete(void)
 	for (k = 0; k < j; k++) {
 		/* Get the pointer to the channel object */
 		ch = vpif_obj.dev[k];
-		common = &ch->common[k];
 		/* Unregister video device */
 		video_unregister_device(&ch->video_dev);
 	}
Signature · 1 line
2.33.1