OSDN Git Service

media: saa7134: Remove unnecessary INIT_LIST_HEAD()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 11 May 2021 11:55:24 +0000 (13:55 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 11:18:12 +0000 (13:18 +0200)
The list_head saa7134_devlist is initialized statically.
It is unnecessary to initialize by INIT_LIST_HEAD().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/saa7134/saa7134-core.c

index efb757d..ec8dd41 100644 (file)
@@ -1524,7 +1524,6 @@ static struct pci_driver saa7134_pci_driver = {
 
 static int __init saa7134_init(void)
 {
-       INIT_LIST_HEAD(&saa7134_devlist);
        pr_info("saa7130/34: v4l2 driver version %s loaded\n",
               SAA7134_VERSION);
        return pci_register_driver(&saa7134_pci_driver);