Commit 1d8286cc authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

mmc: mmc_test: Uninitialized return value

commit 16652a93 upstream.

We never set "ret" to RESULT_OK.

Fixes: 9f9c4180 ("mmc: mmc_test: add test for non-blocking transfers")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 74e365e6
......@@ -818,7 +818,7 @@ static int mmc_test_nonblock_transfer(struct mmc_test_card *test,
struct mmc_async_req *cur_areq = &test_areq[0].areq;
struct mmc_async_req *other_areq = &test_areq[1].areq;
int i;
int ret;
int ret = RESULT_OK;
test_areq[0].test = test;
test_areq[1].test = test;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment