Commit 8209e2f4 authored by Joe Perches's avatar Joe Perches Committed by Jiri Kosina

fs/seq_file.c: Remove unnecessary casts of private_data

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 909ea93b
...@@ -131,7 +131,7 @@ static int traverse(struct seq_file *m, loff_t offset) ...@@ -131,7 +131,7 @@ static int traverse(struct seq_file *m, loff_t offset)
*/ */
ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)
{ {
struct seq_file *m = (struct seq_file *)file->private_data; struct seq_file *m = file->private_data;
size_t copied = 0; size_t copied = 0;
loff_t pos; loff_t pos;
size_t n; size_t n;
...@@ -280,7 +280,7 @@ EXPORT_SYMBOL(seq_read); ...@@ -280,7 +280,7 @@ EXPORT_SYMBOL(seq_read);
*/ */
loff_t seq_lseek(struct file *file, loff_t offset, int origin) loff_t seq_lseek(struct file *file, loff_t offset, int origin)
{ {
struct seq_file *m = (struct seq_file *)file->private_data; struct seq_file *m = file->private_data;
loff_t retval = -EINVAL; loff_t retval = -EINVAL;
mutex_lock(&m->lock); mutex_lock(&m->lock);
...@@ -324,7 +324,7 @@ EXPORT_SYMBOL(seq_lseek); ...@@ -324,7 +324,7 @@ EXPORT_SYMBOL(seq_lseek);
*/ */
int seq_release(struct inode *inode, struct file *file) int seq_release(struct inode *inode, struct file *file)
{ {
struct seq_file *m = (struct seq_file *)file->private_data; struct seq_file *m = file->private_data;
kfree(m->buf); kfree(m->buf);
kfree(m); kfree(m);
return 0; return 0;
......
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