Skip to contentSkip to conversation

mmc: initialize an err variable

PATCH New Jaehoon Chung 2 participants 3 messages Dec 3, 2020 – Feb 18, 2021 1 message not in the archive MMC, SD and SDIO

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20201203213537epcas1p349263156c1cee823a589cbc44646d736@epcas1p3.samsung.com

#1 lore raw

PATCH 1/1 mmc: initialize an err variable

Initialize an err variable to 0.

---
 drivers/mmc/mmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/mmc.c +1 -1
index a6394bcf308f..5151339d3aa3 100644
@@ -2062,7 +2062,7 @@ static int mmc_select_hs400es(struct mmc *mmc)
 
 static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps)
 {
-	int err;
+	int err = 0;
 	const struct mode_width_tuning *mwt;
 	const struct ext_csd_bus_width *ecbw;
 
Signature · 1 line
2.29.0
#2 lore raw

PATCH 1/1 mmc: initialize an err variable

Quoted 3 lines · Jaehoon Chung

Initialize an err variable to 0.

Reported-by Coverity (CID: 313548)
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201207/4eaf2f16/attachment.sig>