staging: bcm2708_vchiq: fix return value check in vchiq_platform_conn_state_changed()
commitb04451d7dfac891daaab2eb88422839660560ba4
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 15:06:07 +0000 (17 15:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2016 07:57:24 +0000 (25 09:57 +0200)
tree18ba1f5d16a9ab4e4c67fd194b39e839531779a7
parentcf8e732b54b6250086c6bbef22a97e423f90c8f4
staging: bcm2708_vchiq: fix return value check in vchiq_platform_conn_state_changed()

In case of error, the function kthread_create() 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c