You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/06/16 14:48:27 UTC

[incubator-nuttx] branch master updated: mmcsd/sdio: correct return value of sdio_probe()

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 591942f69b mmcsd/sdio: correct return value of sdio_probe()
591942f69b is described below

commit 591942f69b3081b511bfec79bd292d848ddb51e6
Author: chao.an <an...@xiaomi.com>
AuthorDate: Thu Jun 16 20:54:51 2022 +0800

    mmcsd/sdio: correct return value of sdio_probe()
    
    Signed-off-by: chao.an <an...@xiaomi.com>
---
 drivers/mmcsd/sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmcsd/sdio.c b/drivers/mmcsd/sdio.c
index f5a9371c52..06a50d4f9e 100644
--- a/drivers/mmcsd/sdio.c
+++ b/drivers/mmcsd/sdio.c
@@ -412,7 +412,7 @@ int sdio_probe(FAR struct sdio_dev_s *dev)
 
 err:
   SDIO_GIVELOCK(dev);
-  return OK;
+  return ret;
 }
 
 int sdio_set_blocksize(FAR struct sdio_dev_s *dev, uint8_t function,