From: Markus Elfring Date: Mon, 16 Nov 2015 21:00:28 +0000 (+0100) Subject: ste_dma40: Delete an unnecessary variable initialisation in d40_probe() X-Git-Tag: v4.5-rc1~51^2~11^2 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=aeb8974ac70f07659b7e5b6fca5bf4d5b4495d4d;p=cascardo%2Flinux.git 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 Acked-by: Linus Walleij Signed-off-by: Vinod Koul --- 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;