mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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>
This commit is contained in:
parent
b9b7b5e49c
commit
669884ea6f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue