diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2021-08-13 09:15:31 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2021-08-23 09:55:20 -0300 |
commit | 7c14829d6f3d0dd0a44975357760f948088abe83 (patch) | |
tree | 004ad00ad102b6765e987f052aafc86b6cb4f389 /arch/arm/mach-imx | |
parent | 4d7089e573e63cefc3a71bc91bb8eb932d3a9348 (diff) |
Revert "MLK-24940 arm: imx: correctly check the return value of "of_get_mac_address""
This reverts commit 845620ec5d3b836956c2eee09cab8dcf0ba89636.
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/common.c b/arch/arm/mach-imx/common.c index 1792c80721d9..2f644c6b2c28 100644 --- a/arch/arm/mach-imx/common.c +++ b/arch/arm/mach-imx/common.c @@ -59,7 +59,7 @@ void __init imx6_enet_mac_init(const char *enet_compat, const char *ocotp_compat from = enet_np; - if (!IS_ERR(of_get_mac_address(enet_np))) + if (of_get_mac_address(enet_np)) goto put_enet_node; id = of_alias_get_id(enet_np, "ethernet"); |