diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-01-26 14:03:51 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-02-08 08:39:50 +0100 |
commit | 6a4c664539e6de9b32b65ddcf767ec1bcc1d7f8a (patch) | |
tree | c71821ac37110d2636d38d9584ee2662625ab662 /drivers/media/tuners/mt2131.h | |
parent | 0d3732fb1b20d2a636d294cdf51c35f9233d622a (diff) | |
download | linux-stable-6a4c664539e6de9b32b65ddcf767ec1bcc1d7f8a.tar.gz linux-stable-6a4c664539e6de9b32b65ddcf767ec1bcc1d7f8a.tar.bz2 linux-stable-6a4c664539e6de9b32b65ddcf767ec1bcc1d7f8a.zip |
media: i2c: ov7670: 0 instead of -EINVAL was returned
If the media bus is unsupported, then return -EINVAL. Instead it
returned 'ret' which happened to be 0.
This fixes a smatch warning:
ov7670.c:1843 ov7670_parse_dt() warn: missing error code? 'ret'
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: 01b8444828fc ("media: v4l2: i2c: ov7670: Implement OF mbus configuration")
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/tuners/mt2131.h')
0 files changed, 0 insertions, 0 deletions