]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
media: drivers/media/pci/zoran: remove redundant assignment to pointer h
authorColin Ian King <colin.king@canonical.com>
Tue, 31 Oct 2017 11:31:42 +0000 (07:31 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 15:11:53 +0000 (10:11 -0500)
The pointer h is already initialized to codeclist_top so the second
identical assignment is redundant and can be removed. Cleans up clang
warning:

drivers/media/pci/zoran/videocodec.c:322:21: warning: Value stored to 'h'
during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/zoran/videocodec.c

index 303289a7fd3f614846ca4252c47c37de519df455..5ff23ef892154889e9a2916ff4f6f3aa0b37a149 100644 (file)
@@ -325,7 +325,6 @@ static int proc_videocodecs_show(struct seq_file *m, void *v)
        seq_printf(m, "<S>lave or attached <M>aster name  type flags    magic    ");
        seq_printf(m, "(connected as)\n");
 
-       h = codeclist_top;
        while (h) {
                seq_printf(m, "S %32s %04x %08lx %08lx (TEMPLATE)\n",
                              h->codec->name, h->codec->type,