Skip to content

Commit

Permalink
gpio: x-gene: Remove a useless memset
Browse files Browse the repository at this point in the history
priv->irq is allocated using devm_kzalloc so there is no need to memset it.

Signed-off-by: Christophe Jaillet <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
tititiou36 authored and linusw committed May 12, 2015
1 parent f4f79d4 commit a4effdd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/gpio/gpio-xgene-sb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a4effdd

Please sign in to comment.