From eb2cd314075bb3b28581c72bb777eee7ec5fd4bc Mon Sep 17 00:00:00 2001 From: Anisetti Avinash Krishna Date: Mon, 18 Dec 2023 21:45:34 +0530 Subject: [PATCH] drivers: sdhc: intel_emmc_host: Fix return value Fixes uninitialized variable return by returning zero at the end of function. Signed-off-by: Anisetti Avinash Krishna --- drivers/sdhc/intel_emmc_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sdhc/intel_emmc_host.c b/drivers/sdhc/intel_emmc_host.c index ec5c7934be..6286965f15 100644 --- a/drivers/sdhc/intel_emmc_host.c +++ b/drivers/sdhc/intel_emmc_host.c @@ -1087,7 +1087,7 @@ static int emmc_set_io(const struct device *dev, struct sdhc_io *ios) host_io->timing = ios->timing; } - return ret; + return 0; } static int emmc_get_card_present(const struct device *dev)