[media] s5p-fimc: Fix return value of __fimc_md_create_flite_source_links()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 5 Dec 2012 16:43:05 +0000 (13:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 11:20:28 +0000 (09:20 -0200)
Make sure 'ret' is not used uninitialized.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-fimc/fimc-mdevice.c

index 1bd5678cfeb9d13f4bfd4b1dc0f7ffccac5ce33b..3b74c4aaa8546f7a56d8ee8afd9a614209f28086 100644 (file)
@@ -593,7 +593,7 @@ static int __fimc_md_create_flite_source_links(struct fimc_md *fmd)
 {
        struct media_entity *source, *sink;
        unsigned int flags = MEDIA_LNK_FL_ENABLED;
-       int i, ret;
+       int i, ret = 0;
 
        for (i = 0; i < FIMC_LITE_MAX_DEVS; i++) {
                struct fimc_lite *fimc = fmd->fimc_lite[i];