diff options
| -rw-r--r-- | fs/seq_file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/seq_file.c b/fs/seq_file.c index e1f437be6c3c..0e7cb1395a94 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c | |||
| @@ -131,7 +131,7 @@ Eoverflow: | |||
| 131 | */ | 131 | */ |
| 132 | ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) | 132 | ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) |
| 133 | { | 133 | { |
| 134 | struct seq_file *m = (struct seq_file *)file->private_data; | 134 | struct seq_file *m = file->private_data; |
| 135 | size_t copied = 0; | 135 | size_t copied = 0; |
| 136 | loff_t pos; | 136 | loff_t pos; |
| 137 | size_t n; | 137 | size_t n; |
| @@ -280,7 +280,7 @@ EXPORT_SYMBOL(seq_read); | |||
| 280 | */ | 280 | */ |
| 281 | loff_t seq_lseek(struct file *file, loff_t offset, int origin) | 281 | loff_t seq_lseek(struct file *file, loff_t offset, int origin) |
| 282 | { | 282 | { |
| 283 | struct seq_file *m = (struct seq_file *)file->private_data; | 283 | struct seq_file *m = file->private_data; |
| 284 | loff_t retval = -EINVAL; | 284 | loff_t retval = -EINVAL; |
| 285 | 285 | ||
| 286 | mutex_lock(&m->lock); | 286 | mutex_lock(&m->lock); |
| @@ -324,7 +324,7 @@ EXPORT_SYMBOL(seq_lseek); | |||
| 324 | */ | 324 | */ |
| 325 | int seq_release(struct inode *inode, struct file *file) | 325 | int seq_release(struct inode *inode, struct file *file) |
| 326 | { | 326 | { |
| 327 | struct seq_file *m = (struct seq_file *)file->private_data; | 327 | struct seq_file *m = file->private_data; |
| 328 | kfree(m->buf); | 328 | kfree(m->buf); |
| 329 | kfree(m); | 329 | kfree(m); |
| 330 | return 0; | 330 | return 0; |
