Merge pull request #1753 from Yann-lms/emmc_ret

mmc: correctly check ret in mmc_fill_device_info
This commit is contained in:
Antonio Niño Díaz 2019-01-31 09:20:45 +00:00 committed by GitHub
commit 8e7d969885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}