media: davinci: remove redundant assignment to pointer common
authorColin Ian King <colin.i.king@gmail.com>
Sun, 5 Dec 2021 00:22:42 +0000 (01:22 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Dec 2021 15:19:03 +0000 (16:19 +0100)
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.

Link: https://lore.kernel.org/linux-media/20211205002242.202769-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/davinci/vpif_capture.c

index aba105fa7ef985f8a96ae1d895eb8f49f6cddfc2..8fe55374c5a30a5e14be4e309e7d4b7b9ec0a786 100644 (file)
@@ -1467,7 +1467,6 @@ probe_out:
        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);
        }