diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-11-14 12:31:34 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-11-29 09:01:01 +0100 |
commit | 16652a936e96f5dae53c3fbd38a570497baadaa8 (patch) | |
tree | 0157a4d07f3c8c0d6451f5be53690eaf9965ce45 | |
parent | mmc: sdhci: remove unneeded (void *) casts in sdhci_(pltfm_)priv() (diff) | |
download | linux-16652a936e96f5dae53c3fbd38a570497baadaa8.tar.xz linux-16652a936e96f5dae53c3fbd38a570497baadaa8.zip |
mmc: mmc_test: Uninitialized return value
We never set "ret" to RESULT_OK.
Fixes: 9f9c4180f88d ("mmc: mmc_test: add test for non-blocking transfers")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/card/mmc_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c index f61c812995ae..5ba6d77b9723 100644 --- a/drivers/mmc/card/mmc_test.c +++ b/drivers/mmc/card/mmc_test.c @@ -832,7 +832,7 @@ static int mmc_test_nonblock_transfer(struct mmc_test_card *test, struct mmc_async_req *other_areq = &test_areq[1].areq; enum mmc_blk_status status; int i; - int ret; + int ret = RESULT_OK; test_areq[0].test = test; test_areq[1].test = test; |