[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1304920324.32447.34.camel@vkoul-udesk3>
Date: Mon, 09 May 2011 11:22:04 +0530
From: "Koul, Vinod" <vinod.koul@...el.com>
To: Linus Walleij <linus.walleij@...ricsson.com>
Cc: linux-kernel@...r.kernel.org,
Dan Williams <dan.j.williams@...el.com>,
Lee Jones <lee.jones@...aro.org>,
Philippe Langlais <philippe.langlais@...aro.org>,
Linus Walleij <linus.walleij@...aro.org>
Subject: Re: [PATCH] dmaengine/ste_dma40: fix introduced warnings
On Sat, 2011-05-07 at 17:09 +0200, Linus Walleij wrote:
> From: Philippe Langlais <philippe.langlais@...aro.org>
>
> The compiler nowadays moans about possibly non-assigned variable.
> Fix this by default-assigning 0.
>
> Signed-off-by: Philippe Langlais <philippe.langlais@...aro.org>
> Signed-off-by: Linus Walleij <linus.walleij@...aro.org>
> ---
> drivers/dma/ste_dma40.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
> index 94ee15d..f3dcd25 100644
> --- a/drivers/dma/ste_dma40.c
> +++ b/drivers/dma/ste_dma40.c
> @@ -1829,7 +1829,7 @@ d40_get_dev_addr(struct d40_chan *chan, enum dma_data_direction direction)
> {
> struct stedma40_platform_data *plat = chan->base->plat_data;
> struct stedma40_chan_cfg *cfg = &chan->dma_cfg;
> - dma_addr_t addr;
> + dma_addr_t addr = 0;
>
> if (chan->runtime_addr)
> return chan->runtime_addr;
Applied, Thanks
--
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists