Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4effddb authored by Christophe Jaillet's avatar Christophe Jaillet Committed by Linus Walleij
Browse files

gpio: x-gene: Remove a useless memset



priv->irq is allocated using devm_kzalloc so there is no need to memset it.

Signed-off-by: default avatarChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f4f79d40
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);