xtensa: iss: fix handling error cases in iss_net_configure()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 7 Jul 2022 02:32:29 +0000 (10:32 +0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Thu, 14 Jul 2022 07:54:31 +0000 (00:54 -0700)
commit628ccfc8f5f79dd548319408fcc53949fe97b258
treeee493c38a93ab3aeff282cc010b45e95de10479d
parent8864fb8359682912ee99235db7db916733a1fd7b
xtensa: iss: fix handling error cases in iss_net_configure()

The 'pdev' and 'netdev' need to be released in error cases of
iss_net_configure().

Change the return type of iss_net_configure() to void, because it's
not used.

Fixes: 7282bee78798 ("[PATCH] xtensa: Architecture support for Tensilica Xtensa Part 8")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/platforms/iss/network.c