From: Cosmin-Florin Aluchenesei Date: Wed, 21 Jul 2021 16:13:33 +0000 (+0300) Subject: net: fsl-mc: fix logically dead code X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=669884ea6f290e5ec912a2fe4d10c687a04cd239;p=u-boot.git net: fsl-mc: fix logically dead code The result of dpio_close() is actually taken into account. Signed-off-by: Cosmin-Florin Aluchenesei Reviewed-by: Ramon Fried --- diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 972db4cf3a..914ec001ec 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 #include @@ -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;