aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAntonio Niño Díaz <antonio.ninodiaz@arm.com>2019-01-31 09:20:45 +0000
committerGitHub <noreply@github.com>2019-01-31 09:20:45 +0000
commit8e7d969885a8e7dcdbef9c3e2bd760c90c7c24d5 (patch)
treefa8f90d967896354b2140debebea40614f72b51e /drivers
parent7e9b0c8eef2b90f51ed41bb8ddf15d7c47672ca9 (diff)
parent5f9984ef5d51ed7db0209f4b0603e2182151392a (diff)
Merge pull request #1753 from Yann-lms/emmc_ret
mmc: correctly check ret in mmc_fill_device_info
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 450bd0b5..77d683c4 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;
}