diff options
| author | Wei Yongjun <[email protected]> | 2016-09-24 11:48:13 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2016-09-24 19:05:25 +0000 |
| commit | 65f7422288cd19c4a9202c4ac7a9cca673b9b2ea (patch) | |
| tree | 384d5224632b37741f2d7200ac478e45cd2ac317 /net/lapb/lapb_out.c | |
| parent | x86/platform/mellanox: Introduce support for Mellanox systems platform (diff) | |
| download | kernel-65f7422288cd19c4a9202c4ac7a9cca673b9b2ea.tar.gz kernel-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 <[email protected]>
Acked-by: Vadim Pasternak <[email protected]>
Cc: [email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
