sparc: kernel: GRPCI2: Remove a useless memset

grpci2priv is allocated using kzalloc, so there is no need to memset it.

Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Christophe Jaillet 2015-05-01 14:05:39 +02:00 committed by David S. Miller
parent acc455cffa
commit 8642ad1c7b
1 changed files with 0 additions and 1 deletions

View File

@ -723,7 +723,6 @@ static int grpci2_of_probe(struct platform_device *ofdev)
err = -ENOMEM; err = -ENOMEM;
goto err1; goto err1;
} }
memset(grpci2priv, 0, sizeof(*grpci2priv));
priv->regs = regs; priv->regs = regs;
priv->irq = ofdev->archdata.irqs[0]; /* BASE IRQ */ priv->irq = ofdev->archdata.irqs[0]; /* BASE IRQ */
priv->irq_mode = (capability & STS_IRQMODE) >> STS_IRQMODE_BIT; priv->irq_mode = (capability & STS_IRQMODE) >> STS_IRQMODE_BIT;