media: sti/c8sectpfe: set correct return code
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 20 Jan 2021 08:45:23 +0000 (09:45 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 07:33:50 +0000 (08:33 +0100)
commit3d14284fe3634e873560a5dce90b65dfd409a29d
treed70523dbb47639741ef21962d8ac1b633c161bbe
parent6e7cca2790a54057ddf64da7843271e192f71ca0
media: sti/c8sectpfe: set correct return code

Fixes this smatch warning:

drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c:829 c8sectpfe_probe() warn: missing error code 'ret'

Set ret to -EINVAL if the reset gpio was not found.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c