aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/saa7164
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-06-21 15:16:47 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-28 14:07:37 -0400
commitfd8d30bf20db099eec4d7f7e678e6d6fa8e492b7 (patch)
tree468fcbb18d31f564e7947f2a888bc983a996aba3 /drivers/media/pci/saa7164
parent5a1d3e9f18ceb8d791bdc9a78d8ee10ddc80a6e8 (diff)
[media] saa7164: fix compiler warning
build/media_build/v4l/saa7164-core.c: In function 'saa7164_initdev': build/media_build/v4l/saa7164-core.c:1192:6: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] int err, i; ^ Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/saa7164')
-rw-r--r--drivers/media/pci/saa7164/saa7164-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/pci/saa7164/saa7164-core.c b/drivers/media/pci/saa7164/saa7164-core.c
index 5d27865784c5..d37ee37aaefe 100644
--- a/drivers/media/pci/saa7164/saa7164-core.c
+++ b/drivers/media/pci/saa7164/saa7164-core.c
@@ -1196,7 +1196,8 @@ static int saa7164_initdev(struct pci_dev *pci_dev,
1196 if (NULL == dev) 1196 if (NULL == dev)
1197 return -ENOMEM; 1197 return -ENOMEM;
1198 1198
1199 if (v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev)) { 1199 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev);
1200 if (err < 0) {
1200 dev_err(&pci_dev->dev, "v4l2_device_register failed\n"); 1201 dev_err(&pci_dev->dev, "v4l2_device_register failed\n");
1201 goto fail_free; 1202 goto fail_free;
1202 } 1203 }