gpio: x-gene: Remove a useless memset
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Fri, 1 May 2015 12:29:06 +0000 (14:29 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 12 May 2015 07:43:17 +0000 (09:43 +0200)
priv->irq is allocated using devm_kzalloc so there is no need to memset it.

Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-xgene-sb.c

index fb9d29a..a7b8f8f 100644 (file)
@@ -112,7 +112,6 @@ static int xgene_gpio_sb_probe(struct platform_device *pdev)
                                   GFP_KERNEL);
        if (!priv->irq)
                return -ENOMEM;
-       memset(priv->irq, 0, sizeof(u32) * XGENE_MAX_GPIO_DS);
 
        for (i = 0; i < priv->nirq; i++) {
                priv->irq[default_lines[i]] = platform_get_irq(pdev, i);