diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-03-08 15:28:02 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-22 12:21:22 +0300 |
commit | e61f9ea271933d987ab895c689fa37744f6fc27f (patch) | |
tree | 43c5865edb75f1b7a4bca150a0f65268593133c4 /Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst | |
parent | b9302fa7ed979e84b454e4ca92192cf485a4ed41 (diff) | |
download | linux-e61f9ea271933d987ab895c689fa37744f6fc27f.tar.xz |
media: m88ds3103: fix return value check in m88ds3103_probe()
In case of error, the function i2c_new_dummy_device() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().
Fixes: e6089feca460 ("media: m88ds3103: Add support for ds3103b demod")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst')
0 files changed, 0 insertions, 0 deletions