Commit 8a994a71 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

net/core: Remove unnecessary casts of private_data

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cb8b6a93
...@@ -846,7 +846,7 @@ static ssize_t pktgen_if_write(struct file *file, ...@@ -846,7 +846,7 @@ static ssize_t pktgen_if_write(struct file *file,
const char __user * user_buffer, size_t count, const char __user * user_buffer, size_t count,
loff_t * offset) 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; struct pktgen_dev *pkt_dev = seq->private;
int i = 0, max, len; int i = 0, max, len;
char name[16], valstr[32]; char name[16], valstr[32];
...@@ -1776,7 +1776,7 @@ static ssize_t pktgen_thread_write(struct file *file, ...@@ -1776,7 +1776,7 @@ static ssize_t pktgen_thread_write(struct file *file,
const char __user * user_buffer, const char __user * user_buffer,
size_t count, loff_t * offset) 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; struct pktgen_thread *t = seq->private;
int i = 0, max, len, ret; int i = 0, max, len, ret;
char name[40]; char name[40];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment