瀏覽代碼

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: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Christophe Jaillet 10 年之前
父節點
當前提交
a4effddb6d
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/gpio/gpio-xgene-sb.c

+ 0 - 1
drivers/gpio/gpio-xgene-sb.c

@@ -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);