staging: wfx: fix Oops when CONFIG_OF_NET is not set
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Thu, 17 Oct 2019 09:40:06 +0000 (09:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Oct 2019 18:42:32 +0000 (20:42 +0200)
commit4e4f5e6fef21a574b4749a0fb5e96070eb03cb19
treecfa7a14aba97a7d08a158243975d3f59e1275cc7
parent8008d9e7ddf0b72ff0f879af0a3c48a1086b6250
staging: wfx: fix Oops when CONFIG_OF_NET is not set

In most case, of_get_mac_address() return NULL in case of error.
However, if CONFIG_OF_NET is not set, it return -ENODEV.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191017093954.657-4-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/main.c