forked from Minki/linux
[media] s5p-fimc: Fix return value of __fimc_md_create_flite_source_links()
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>
This commit is contained in:
parent
12861dc659
commit
a26860bdbd
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user