[DECNET]: Don't clear memory twice.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 9 Nov 2006 07:02:19 +0000 (23:02 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:21:36 +0000 (21:21 -0800)
When dn_neigh.c was converted from kmalloc to kzalloc in commit
0da974f4f303a6842516b764507e3c0a03f41e5a it was missed that
dn_neigh_seq_open was actually clearing the allocation twice was
missed.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_neigh.c

index ff0ebe99137de244092c92e87d0dda7e9fc8ed57..7322bb36e825a1625ce4e130efbe02f2309634ab 100644 (file)
@@ -591,7 +591,6 @@ static int dn_neigh_seq_open(struct inode *inode, struct file *file)
 
        seq          = file->private_data;
        seq->private = s;
-       memset(s, 0, sizeof(*s));
 out:
        return rc;
 out_kfree: