diff options
author | 2016-09-24 11:48:13 +0000 | |
---|---|---|
committer | 2016-09-24 21:05:25 +0200 | |
commit | 65f7422288cd19c4a9202c4ac7a9cca673b9b2ea (patch) | |
tree | 384d5224632b37741f2d7200ac478e45cd2ac317 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | x86/platform/mellanox: Introduce support for Mellanox systems platform (diff) | |
download | linux-dev-65f7422288cd19c4a9202c4ac7a9cca673b9b2ea.tar.xz linux-dev-65f7422288cd19c4a9202c4ac7a9cca673b9b2ea.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions