commit | 65f7422288cd19c4a9202c4ac7a9cca673b9b2ea | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Sat Sep 24 11:48:13 2016 +0000 |
committer | Thomas Gleixner <tglx@linutronix.de> | Sat Sep 24 21:05:25 2016 +0200 |
tree | 384d5224632b37741f2d7200ac478e45cd2ac317 | |
parent | 58cbbee2391ce3876e6eee80a4f2a7f025859c52 [diff] |
x86/platform/mellanox: Fix return value check in mlxplat_init() In case of error, the function platform_device_register_simple() returns ERR_PTR() and never returns NULL. The NULL test in the return value check must therefor be replaced with IS_ERR(). Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Vadim Pasternak <vadimp@mellanox.com> Cc: platform-driver-x86@vger.kernel.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>