aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosmin-Florin Aluchenesei <aluchenesei.cosmin-florin@nxp.com>2021-07-21 19:13:33 +0300
committerRamon Fried <rfried.dev@gmail.com>2021-07-22 22:16:26 +0300
commit669884ea6f290e5ec912a2fe4d10c687a04cd239 (patch)
treed912043fdaf8da584e2e5d0b70eff4aeee182fce
parentb9b7b5e49c2635eeb0b53c54fd2db51626de467d (diff)
downloadu-boot-669884ea6f290e5ec912a2fe4d10c687a04cd239.zip
u-boot-669884ea6f290e5ec912a2fe4d10c687a04cd239.tar.gz
u-boot-669884ea6f290e5ec912a2fe4d10c687a04cd239.tar.bz2
net: fsl-mc: fix logically dead code
The result of dpio_close() is actually taken into account. Signed-off-by: Cosmin-Florin Aluchenesei <aluchenesei.cosmin-florin@nxp.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
-rw-r--r--drivers/net/fsl-mc/mc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c
index 972db4c..914ec00 100644
--- a/drivers/net/fsl-mc/mc.c
+++ b/drivers/net/fsl-mc/mc.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2014 Freescale Semiconductor, Inc.
- * Copyright 2017-2018, 2020 NXP
+ * Copyright 2017-2018, 2020-2021 NXP
*/
#include <common.h>
#include <command.h>
@@ -1126,7 +1126,7 @@ static int dpio_exit(void)
goto err;
}
- dpio_close(dflt_mc_io, MC_CMD_NO_FLAGS, dflt_dpio->dpio_handle);
+ err = dpio_close(dflt_mc_io, MC_CMD_NO_FLAGS, dflt_dpio->dpio_handle);
if (err < 0) {
printf("dpio_close() failed: %d\n", err);
goto err;