diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2016-09-17 15:34:18 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-09-26 20:36:17 +0300 |
commit | 11f7a8d19bc85c82241a6540cd83d2aad7e94a04 (patch) | |
tree | 74ab28b783eb58ca90f77cdbc65015000ae529f9 /drivers/dma/ste_dma40.c | |
parent | f4534adbcfbb38a21691ca8dfdc8750689d8bcc9 (diff) | |
download | linux-11f7a8d19bc85c82241a6540cd83d2aad7e94a04.tar.xz |
ste_dma40: Delete unnecessary variable initialisations in d40_hw_detect_init()
Five local variables will be set to an appropriate value a bit later.
Thus omit the explicit initialisation which became unnecessary with
a previous update step.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index e4c5c8b91e28..cead96b6db42 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3144,11 +3144,11 @@ static int __init d40_phy_res_init(struct d40_base *base) static struct d40_base * __init d40_hw_detect_init(struct platform_device *pdev) { struct stedma40_platform_data *plat_data = dev_get_platdata(&pdev->dev); - struct clk *clk = NULL; - void __iomem *virtbase = NULL; - struct resource *res = NULL; - struct d40_base *base = NULL; - int num_log_chans = 0; + struct clk *clk; + void __iomem *virtbase; + struct resource *res; + struct d40_base *base; + int num_log_chans; int num_phy_chans; int num_memcpy_chans; int clk_ret = -EINVAL; |