Skip to contentSkip to conversation

mmc: mmc_test: Uninitialized return value

PATCH Applied Dan Carpenter 2 participants 2 messages Nov 14, 2016 – Nov 18, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: mmc_test: Uninitialized return value

We never set "ret" to RESULT_OK.

Fixes 9f9c4180f88d ("mmc: mmc_test: add test for non-blocking transfers")
drivers/mmc/card/mmc_test.c +1 -1
index f61c812..5ba6d77 100644
@@ -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;
Applied
#1 lore raw
Quoted 4 lines · Dan Carpenter

We never set "ret" to RESULT_OK.

Fixes 9f9c4180f88d ("mmc: mmc_test: add test for non-blocking transfers")

Thanks, applied for next!

Kind regards
Uffe

Quoted 14 lines
drivers/mmc/card/mmc_test.c +1 -1
index f61c812..5ba6d77 100644
@@ -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;