]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: fsl-mc: fix logically dead code
authorCosmin-Florin Aluchenesei <aluchenesei.cosmin-florin@nxp.com>
Wed, 21 Jul 2021 16:13:33 +0000 (19:13 +0300)
committerRamon Fried <rfried.dev@gmail.com>
Thu, 22 Jul 2021 19:16:26 +0000 (22:16 +0300)
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>
drivers/net/fsl-mc/mc.c

index 972db4cf3a0d94a888a17929e9f5409c49801448..914ec001ec691937b33c9f89e858b036916b750c 100644 (file)
@@ -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;