sd: sd_ops: remove additional unlock call within card_read()
SD ops card_read() implementation does not need to unlock mutex, as this
is managed by the calling function card_write_blocks. Remove this stray
k_mutex_unlock() call.
Fixes #72287
Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
diff --git a/subsys/sd/sd_ops.c b/subsys/sd/sd_ops.c
index 7d4ebf1..debf80f 100644
--- a/subsys/sd/sd_ops.c
+++ b/subsys/sd/sd_ops.c
@@ -535,7 +535,6 @@
ret = sdmmc_wait_ready(card);
if (ret) {
LOG_ERR("Card did not return to ready state");
- k_mutex_unlock(&card->lock);
return -ETIMEDOUT;
}
return 0;