ext4: Remove unnecessary casts of private_data
authorJoe Perches <joe@perches.com>
Tue, 27 Jul 2010 15:56:04 +0000 (11:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 27 Jul 2010 15:56:04 +0000 (11:56 -0400)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/dir.c
fs/ext4/mballoc.c

index 62e8af04ed1e62b430b4060aad59ee8492a8dda5..374510f72baaaa02b3f8768ee4b5d8261ab1080c 100644 (file)
@@ -344,7 +344,7 @@ int ext4_htree_store_dirent(struct file *dir_file, __u32 hash,
        struct dir_private_info *info;
        int len;
 
-       info = (struct dir_private_info *) dir_file->private_data;
+       info = dir_file->private_data;
        p = &info->root.rb_node;
 
        /* Create and allocate the fname structure */
index 8b3b9344a595828bb8c0e8ed53cf92696ffb6dc4..84185d21500405086b9504ea7a002df5c2f8a8e4 100644 (file)
@@ -2219,7 +2219,7 @@ static int ext4_mb_seq_groups_open(struct inode *inode, struct file *file)
 
        rc = seq_open(file, &ext4_mb_seq_groups_ops);
        if (rc == 0) {
-               struct seq_file *m = (struct seq_file *)file->private_data;
+               struct seq_file *m = file->private_data;
                m->private = sb;
        }
        return rc;