diff options
author | Christophe Jaillet <christophe.jaillet@wanadoo.fr> | 2015-05-01 15:05:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-01 08:14:05 +0300 |
commit | 8642ad1c7ba43b1c48eb39a863e975f3f8f96168 (patch) | |
tree | 8a33396bfb5f0d458a2a008863040a58d13baa7f /arch/sparc | |
parent | acc455cffa75070d55e74fc7802b49edbc080e92 (diff) | |
download | linux-8642ad1c7ba43b1c48eb39a863e975f3f8f96168.tar.xz |
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>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/leon_pci_grpci2.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/sparc/kernel/leon_pci_grpci2.c b/arch/sparc/kernel/leon_pci_grpci2.c index 94e392bdee7d..814fb1729b12 100644 --- a/arch/sparc/kernel/leon_pci_grpci2.c +++ b/arch/sparc/kernel/leon_pci_grpci2.c @@ -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; |