media: qm1d1c0042: fix error return code in qm1d1c0042_init()
authorLuo Meng <luomeng12@huawei.com>
Wed, 25 Nov 2020 01:34:37 +0000 (02:34 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 11:59:17 +0000 (12:59 +0100)
commitfcf8d018bdca0453b8d6359062e6bc1512d04c38
tree0fafbf29d3edf280e3c309b49b8ae95c344673ca
parent69518b52e923c4372945b3ee30f0759397d71de7
media: qm1d1c0042: fix error return code in qm1d1c0042_init()

Fix to return a negative error code from the error handling case
instead of 0 in function qm1d1c0042_init(), as done elsewhere
in this function.

Fixes: ab4d14528fdf ("[media] em28xx: add support for PLEX PX-BCUD (ISDB-S)")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Luo Meng <luomeng12@huawei.com>
Acked-by: Akihiro Tsukada <tskd08@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/tuners/qm1d1c0042.c