]> git.baikalelectronics.ru Git - kernel.git/commit
staging: android: ion: Fix return value check in hi6220_ion_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 02:20:43 +0000 (02:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Sep 2016 08:22:35 +0000 (10:22 +0200)
commit4ba4bd1fb70727b30930b882f8bc3d7607503c25
tree1a63bcdab71298f00527a48dd8f5d4a81807eeb7
parent9699bfb463cf96f78f5831044de9d6ed7e5bba36
staging: android: ion: Fix return value check in hi6220_ion_probe()

In case of error, the function ion_device_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>
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/hisilicon/hi6220_ion.c