]> git.baikalelectronics.ru Git - kernel.git/commit
media: vimc: Fix return value check in vimc_add_subdevs()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 11 Oct 2017 11:16:43 +0000 (13:16 +0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 27 Oct 2017 12:00:11 +0000 (14:00 +0200)
commit5c83e9c98e6384090ddd648c32b9617537c1cfde
treeede9cbeb0c4c6a0b718426cd1aa4748eb6af8975
parent22d4f981714df65c4c473e88cbc463e9f0a1ef14
media: vimc: Fix return value check in vimc_add_subdevs()

In case of error, the function platform_device_register_data() returns
ERR_PTR() and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vimc/vimc-core.c