fjes: fix missed check in fjes_acpi_add
authorChuhong Yuan <hslester96@gmail.com>
Mon, 9 Dec 2019 16:22:07 +0000 (00:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:41:14 +0000 (16:41 +0100)
commit0cb8ada291917c1e6e20384d89bb4147e8a427fd
tree39d292c3f368159c2ab82c7cb254179d356b18e3
parent772f76457932305e63e2b796228158b842830022
fjes: fix missed check in fjes_acpi_add

[ Upstream commit a288f105a03a7e0e629a8da2b31f34ebf0343ee2 ]

fjes_acpi_add() misses a check for platform_device_register_simple().
Add a check to fix it.

Fixes: 658d439b2292 ("fjes: Introduce FUJITSU Extended Socket Network Device driver")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/fjes/fjes_main.c