Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757421AbbEVNro (ORCPT ); Fri, 22 May 2015 09:47:44 -0400 Received: from mail-qg0-f48.google.com ([209.85.192.48]:34361 "EHLO mail-qg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757059AbbEVNrk (ORCPT ); Fri, 22 May 2015 09:47:40 -0400 MIME-Version: 1.0 In-Reply-To: <1431971578-20700-1-git-send-email-fabf@skynet.be> References: <1431971578-20700-1-git-send-email-fabf@skynet.be> Date: Fri, 22 May 2015 15:47:39 +0200 Message-ID: Subject: Re: [PATCH 1/1 linux-next] mmc: mmc-test: use swap() in mmc_test_nonblock_transfer() From: Ulf Hansson To: Fabian Frederick Cc: "linux-kernel@vger.kernel.org" , linux-mmc Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1201 Lines: 37 On 18 May 2015 at 19:52, Fabian Frederick wrote: > Use kernel.h macro definition. > > Signed-off-by: Fabian Frederick Thanks, applied. Kind regards Uffe > --- > drivers/mmc/card/mmc_test.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c > index 5e90b3f..b78cf5d 100644 > --- a/drivers/mmc/card/mmc_test.c > +++ b/drivers/mmc/card/mmc_test.c > @@ -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; > } > > -- > 2.4.0 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/