summaryrefslogtreecommitdiffstats
path: root/drivers/dma/ste_dma40.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2015-11-16 22:00:28 +0100
committerVinod Koul <vinod.koul@intel.com>2015-12-10 04:47:10 +0100
commitaeb8974ac70f07659b7e5b6fca5bf4d5b4495d4d (patch)
tree36c14834cf398c837945d6429ba415ab0538b357 /drivers/dma/ste_dma40.c
parentste_dma40: Delete another unnecessary check in d40_probe() (diff)
downloadlinux-aeb8974ac70f07659b7e5b6fca5bf4d5b4495d4d.tar.xz
linux-aeb8974ac70f07659b7e5b6fca5bf4d5b4495d4d.zip
ste_dma40: Delete an unnecessary variable initialisation in d40_probe()
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@users.sourceforge.net> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/ste_dma40.c')
-rw-r--r--drivers/dma/ste_dma40.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
index 8ebfde12399a..6fb8307468ab 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;