mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
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>
This commit is contained in:
parent
f4f79d4062
commit
a4effddb6d
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue