summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-06-21 16:16:47 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-06-28 15:07:37 -0300
commitfd8d30bf20db099eec4d7f7e678e6d6fa8e492b7 (patch)
tree468fcbb18d31f564e7947f2a888bc983a996aba3 /drivers/media
parent5a1d3e9f18ceb8d791bdc9a78d8ee10ddc80a6e8 (diff)
downloadblackbird-op-linux-fd8d30bf20db099eec4d7f7e678e6d6fa8e492b7.tar.gz
blackbird-op-linux-fd8d30bf20db099eec4d7f7e678e6d6fa8e492b7.zip
[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')
-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,
if (NULL == dev)
return -ENOMEM;
- if (v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev)) {
+ err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev);
+ if (err < 0) {
dev_err(&pci_dev->dev, "v4l2_device_register failed\n");
goto fail_free;
}
OpenPOWER on IntegriCloud