net/core: Remove unnecessary casts of private_data
authorJoe Perches <joe@perches.com>
Mon, 12 Jul 2010 10:50:23 +0000 (10:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jul 2010 04:13:36 +0000 (21:13 -0700)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c

index 1ee2ebd9b04f3a6ae9f90a267d586d4d71658f34..24a19debda1b3254370690e61d8fc73939b0297b 100644 (file)
@@ -846,7 +846,7 @@ static ssize_t pktgen_if_write(struct file *file,
                               const char __user * user_buffer, size_t count,
                               loff_t * offset)
 {
-       struct seq_file *seq = (struct seq_file *)file->private_data;
+       struct seq_file *seq = file->private_data;
        struct pktgen_dev *pkt_dev = seq->private;
        int i = 0, max, len;
        char name[16], valstr[32];
@@ -1776,7 +1776,7 @@ static ssize_t pktgen_thread_write(struct file *file,
                                   const char __user * user_buffer,
                                   size_t count, loff_t * offset)
 {
-       struct seq_file *seq = (struct seq_file *)file->private_data;
+       struct seq_file *seq = file->private_data;
        struct pktgen_thread *t = seq->private;
        int i = 0, max, len, ret;
        char name[40];