diff options
author | Joe Perches <joe@perches.com> | 2010-07-12 06:50:23 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-13 00:13:36 -0400 |
commit | 8a994a7180104b305970232e160b18523c1fbd6a (patch) | |
tree | 830b9b19a2ce51f3d805a335396d085dbc426c27 /net | |
parent | cb8b6a937712cc6c4a23766ddb74171bb19b528c (diff) |
net/core: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/pktgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 1ee2ebd9b04f..24a19debda1b 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -846,7 +846,7 @@ static ssize_t pktgen_if_write(struct file *file, | |||
846 | const char __user * user_buffer, size_t count, | 846 | const char __user * user_buffer, size_t count, |
847 | loff_t * offset) | 847 | loff_t * offset) |
848 | { | 848 | { |
849 | struct seq_file *seq = (struct seq_file *)file->private_data; | 849 | struct seq_file *seq = file->private_data; |
850 | struct pktgen_dev *pkt_dev = seq->private; | 850 | struct pktgen_dev *pkt_dev = seq->private; |
851 | int i = 0, max, len; | 851 | int i = 0, max, len; |
852 | char name[16], valstr[32]; | 852 | char name[16], valstr[32]; |
@@ -1776,7 +1776,7 @@ static ssize_t pktgen_thread_write(struct file *file, | |||
1776 | const char __user * user_buffer, | 1776 | const char __user * user_buffer, |
1777 | size_t count, loff_t * offset) | 1777 | size_t count, loff_t * offset) |
1778 | { | 1778 | { |
1779 | struct seq_file *seq = (struct seq_file *)file->private_data; | 1779 | struct seq_file *seq = file->private_data; |
1780 | struct pktgen_thread *t = seq->private; | 1780 | struct pktgen_thread *t = seq->private; |
1781 | int i = 0, max, len, ret; | 1781 | int i = 0, max, len, ret; |
1782 | char name[40]; | 1782 | char name[40]; |