summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-07-14 17:14:10 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2020-07-24 12:51:40 +0300
commit907be2a62e4522c3dc3c298a213ccc741bd22732 (patch)
tree5a20c783444a12e74f9f2e52e7fd44d03a36fcc6 /init
parenta1c76734095344fdbe43cbfe4940020e13151679 (diff)
downloadlinux-907be2a62e4522c3dc3c298a213ccc741bd22732.tar.xz
mmc: sdhci: Fix a potential uninitialized variable
Smatch complains that "ret" can be used without being initialized. drivers/mmc/host/sdhci.c 4383 if (!IS_ERR(mmc->supply.vqmmc)) { 4384 if (enable_vqmmc) { ^^^^^^^^^^^^ 4385 ret = regulator_enable(mmc->supply.vqmmc); ^^^^^ 4386 host->sdhci_core_to_disable_vqmmc = !ret; 4387 } "ret" is only initialized when "enable_vqmmc" is true. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20200714141410.GB314989@mwanda Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions