git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dddc1b
)
mmc: initialize an err variable
author
Jaehoon Chung
<jh80.chung@samsung.com>
Thu, 3 Dec 2020 21:36:00 +0000
(06:36 +0900)
committer
Peng Fan
<peng.fan@nxp.com>
Fri, 19 Feb 2021 06:59:28 +0000
(14:59 +0800)
Initialize an err variable to 0.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reported-by: Coverity (CID: 313548)
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/mmc/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index
36aab50
..
d67af80
100644
(file)
--- a/
drivers/mmc/mmc.c
+++ b/
drivers/mmc/mmc.c
@@
-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;