mmc: mmc_test: Uninitialized return value
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 Nov 2016 11:31:34 +0000 (14:31 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:01:01 +0000 (09:01 +0100)
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>
drivers/mmc/card/mmc_test.c

index f61c812995aefcd564b080f3d5eacc86485872af..5ba6d77b9723c8799418b59d8e0d51899f97ad7c 100644 (file)
@@ -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;