diff options
author | Joe Perches <joe@perches.com> | 2010-09-04 21:52:49 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-09-23 07:28:23 -0400 |
commit | 8209e2f46752914e94f65469b8312c42dc5d7d8f (patch) | |
tree | 7898974b9ad0ddab2c60beb3eb1941c31f22a316 /fs/seq_file.c | |
parent | 909ea93b12541a0bac27c495c810ac6d79343986 (diff) |
fs/seq_file.c: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'fs/seq_file.c')
-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; |