diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 450bd0b5da3aaed0d6e985b7b18232c3a1ab6a91..77d683c459d4660180f314bbfaf879a4d2aefeb6 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -300,7 +300,7 @@ static int mmc_fill_device_info(void) break; } - if (ret != 0) { + if (ret < 0) { return ret; }