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

Commit 8642ad1c authored by Christophe Jaillet's avatar Christophe Jaillet Committed by David S. Miller
Browse files

sparc: kernel: GRPCI2: Remove a useless memset



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

Signed-off-by: default avatarChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent acc455cf
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -723,7 +723,6 @@ static int grpci2_of_probe(struct platform_device *ofdev)
		err = -ENOMEM;
		goto err1;
	}
	memset(grpci2priv, 0, sizeof(*grpci2priv));
	priv->regs = regs;
	priv->irq = ofdev->archdata.irqs[0]; /* BASE IRQ */
	priv->irq_mode = (capability & STS_IRQMODE) >> STS_IRQMODE_BIT;