Re: [PATCH] [media] vimc: Fix return value check in vimc_add_subdevs()

2017-10-11 Thread Helen Koike
Hello, On 2017-10-11 08:16 AM, Wei Yongjun wrote: > 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 >

[PATCH] [media] vimc: Fix return value check in vimc_add_subdevs()

2017-10-11 Thread Wei Yongjun
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 --- drivers/media/platform/vimc/vimc-core.c | 5 +++-- 1 file