fs/ecryptfs: Remove unnecessary casts of private_data
authorJoe Perches <joe@perches.com>
Sun, 5 Sep 2010 01:52:48 +0000 (18:52 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 23 Sep 2010 11:29:38 +0000 (13:29 +0200)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
fs/ecryptfs/ecryptfs_kernel.h

index 0032a9f..40186b9 100644 (file)
@@ -477,7 +477,7 @@ ecryptfs_lower_header_size(struct ecryptfs_crypt_stat *crypt_stat)
 static inline struct ecryptfs_file_info *
 ecryptfs_file_to_private(struct file *file)
 {
-       return (struct ecryptfs_file_info *)file->private_data;
+       return file->private_data;
 }
 
 static inline void