From: Vinod Koul <vinod.koul@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org,
Stephen Warren <swarren@nvidia.com>,
Lars-Peter Clausen <lars@metafoo.de>,
Joe Perches <joe@perches.com>,
Dan Williams <dan.j.williams@intel.com>,
Daniel Mack <zonque@gmail.com>, Xiang Wang <wangx@marvell.com>,
Zhangfei Gao <zhangfei.gao@marvell.com>
Subject: Re: [PATCH] dmaengine: mmp_pdma: fix mismerge
Date: Wed, 29 Jan 2014 17:39:41 +0530 [thread overview]
Message-ID: <20140129120941.GK10628@intel.com> (raw)
In-Reply-To: <3546714.4OTE6dW34L@wuerfel>
On Tue, Jan 28, 2014 at 09:45:38PM +0100, Arnd Bergmann wrote:
> The merge between 2b7f65b11d87f "mmp_pdma: Style neatening" and
> 8010dad55a0ab0 "dma: add dma_get_any_slave_channel(), for use in of_xlate()"
> caused a build error by leaving obsolete code in place:
>
> mmp_pdma.c: In function 'mmp_pdma_dma_xlate':
> mmp_pdma.c:909:31: error: 'candidate' undeclared
> mmp_pdma.c:912:3: error: label 'retry' used but not defined
> mmp_pdma.c:901:24: warning: unused variable 'c' [-Wunused-variable]
>
> This removes the extraneous lines.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Applied thanks
--
~Vinod
>
> diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c
> index 32e58ee..69c6a12 100644
> --- a/drivers/dma/mmp_pdma.c
> +++ b/drivers/dma/mmp_pdma.c
> @@ -898,19 +898,11 @@ static struct dma_chan *mmp_pdma_dma_xlate(struct of_phandle_args *dma_spec,
> {
> struct mmp_pdma_device *d = ofdma->of_dma_data;
> struct dma_chan *chan;
> - struct mmp_pdma_chan *c;
>
> chan = dma_get_any_slave_channel(&d->device);
> if (!chan)
> return NULL;
>
> - /* dma_get_slave_channel will return NULL if we lost a race between
> - * the lookup and the reservation */
> - chan = dma_get_slave_channel(candidate);
> -
> - if (!chan)
> - goto retry;
> -
> to_mmp_pdma_chan(chan)->drcmr = dma_spec->args[0];
>
> return chan;
>
--
prev parent reply other threads:[~2014-01-29 12:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-28 20:45 [PATCH] dmaengine: mmp_pdma: fix mismerge Arnd Bergmann
2014-01-29 12:09 ` Vinod Koul [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140129120941.GK10628@intel.com \
--to=vinod.koul@intel.com \
--cc=arnd@arndb.de \
--cc=dan.j.williams@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=joe@perches.com \
--cc=lars@metafoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=swarren@nvidia.com \
--cc=wangx@marvell.com \
--cc=zhangfei.gao@marvell.com \
--cc=zonque@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox