mmc: mmc-test: use swap() in mmc_test_nonblock_transfer()
authorFabian Frederick <fabf@skynet.be>
Mon, 18 May 2015 17:52:58 +0000 (19:52 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Jun 2015 07:07:08 +0000 (09:07 +0200)
Use kernel.h macro definition.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/mmc_test.c

index 5e90b3f..b78cf5d 100644 (file)
@@ -820,9 +820,7 @@ static int mmc_test_nonblock_transfer(struct mmc_test_card *test,
                                mmc_test_nonblock_reset(&mrq1, &cmd1,
                                                        &stop1, &data1);
                }
-               done_areq = cur_areq;
-               cur_areq = other_areq;
-               other_areq = done_areq;
+               swap(cur_areq, other_areq);
                dev_addr += blocks;
        }