diff options
author | Joe Perches <joe@perches.com> | 2010-07-27 11:56:04 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-07-27 11:56:04 -0400 |
commit | a271fe8527fe9637bdd82c97123b1356940dd84b (patch) | |
tree | 07a950c18ad1c2391d18272d6154d23c83b71a8e /fs/ext4 | |
parent | e5880d76aea443b04e07da19830da0f6f7494eef (diff) |
ext4: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/dir.c | 2 | ||||
-rw-r--r-- | fs/ext4/mballoc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c index 62e8af04ed1e..374510f72baa 100644 --- a/fs/ext4/dir.c +++ b/fs/ext4/dir.c | |||
@@ -344,7 +344,7 @@ int ext4_htree_store_dirent(struct file *dir_file, __u32 hash, | |||
344 | struct dir_private_info *info; | 344 | struct dir_private_info *info; |
345 | int len; | 345 | int len; |
346 | 346 | ||
347 | info = (struct dir_private_info *) dir_file->private_data; | 347 | info = dir_file->private_data; |
348 | p = &info->root.rb_node; | 348 | p = &info->root.rb_node; |
349 | 349 | ||
350 | /* Create and allocate the fname structure */ | 350 | /* Create and allocate the fname structure */ |
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 8b3b9344a595..84185d215004 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -2219,7 +2219,7 @@ static int ext4_mb_seq_groups_open(struct inode *inode, struct file *file) | |||
2219 | 2219 | ||
2220 | rc = seq_open(file, &ext4_mb_seq_groups_ops); | 2220 | rc = seq_open(file, &ext4_mb_seq_groups_ops); |
2221 | if (rc == 0) { | 2221 | if (rc == 0) { |
2222 | struct seq_file *m = (struct seq_file *)file->private_data; | 2222 | struct seq_file *m = file->private_data; |
2223 | m->private = sb; | 2223 | m->private = sb; |
2224 | } | 2224 | } |
2225 | return rc; | 2225 | return rc; |