summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2021-05-11 13:55:24 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-06-02 13:18:12 +0200
commitd2a0f8d6afdabf5d03a1b2fce73326bf0666ec18 (patch)
tree0b7a583e6def6704865b8d0e31aecd8f8e4aaa2a /drivers/media/pci
parent7dd0c9e547b6924e18712b6b51aa3cba1896ee2c (diff)
downloadlinux-d2a0f8d6afdabf5d03a1b2fce73326bf0666ec18.tar.bz2
media: saa7134: Remove unnecessary INIT_LIST_HEAD()
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>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/saa7134/saa7134-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/pci/saa7134/saa7134-core.c b/drivers/media/pci/saa7134/saa7134-core.c
index efb757d5168a..ec8dd41f9ebb 100644
--- a/drivers/media/pci/saa7134/saa7134-core.c
+++ b/drivers/media/pci/saa7134/saa7134-core.c
@@ -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);