[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <564A4A08.5000705@users.sourceforge.net>
Date: Mon, 16 Nov 2015 22:26:32 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Dan Williams <dan.j.williams@...el.com>,
Linus Walleij <linus.walleij@...aro.org>,
Vinod Koul <vinod.koul@...el.com>,
linux-arm-kernel@...ts.infradead.org, dmaengine@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: [PATCH 3/3] ste_dma40: Delete an unnecessary variable initialisation
in d40_probe()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Mon, 16 Nov 2015 22:00:28 +0100
The variable "res" will eventually be set to a resource pointer from
a call of the d40_hw_detect_init(() function.
Thus let us omit the explicit initialisation at the beginning.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/dma/ste_dma40.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 8ebfde1..6fb8307 100644
--- a/drivers/dma/ste_dma40.c
+++ b/drivers/dma/ste_dma40.c
@@ -3544,7 +3544,7 @@ static int __init d40_probe(struct platform_device *pdev)
struct device_node *np = pdev->dev.of_node;
int ret = -ENOENT;
struct d40_base *base;
- struct resource *res = NULL;
+ struct resource *res;
int num_reserved_chans;
u32 val;
--
2.6.2
--
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