diff options
author | Haowen Bai <baihaowen@meizu.com> | 2022-04-21 05:48:03 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-04-23 02:43:30 +0300 |
commit | f28c47bb9fd3286a99194876a6e528be87484c75 (patch) | |
tree | e11c63719ca5cab8bd47977d0f36ba66ec8e549c /drivers/net/ethernet/engleder | |
parent | e21bebf9727a2e96c89c1f35e8f3e04e37afd6de (diff) | |
download | linux-f28c47bb9fd3286a99194876a6e528be87484c75.tar.xz |
tsnep: Remove useless null check before call of_node_put()
No need to add null check before call of_node_put(), since the
implementation of of_node_put() has done it.
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1650509283-26168-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/engleder')
-rw-r--r-- | drivers/net/ethernet/engleder/tsnep_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/engleder/tsnep_main.c b/drivers/net/ethernet/engleder/tsnep_main.c index 904f3304727e..49c93aa38862 100644 --- a/drivers/net/ethernet/engleder/tsnep_main.c +++ b/drivers/net/ethernet/engleder/tsnep_main.c @@ -1091,8 +1091,7 @@ static int tsnep_mdio_init(struct tsnep_adapter *adapter) retval = of_mdiobus_register(adapter->mdiobus, np); out: - if (np) - of_node_put(np); + of_node_put(np); return retval; } |