fs/ecryptfs: Remove unnecessary casts of private_data
Joe Perches [Sun, 5 Sep 2010 01:52:48 +0000 (18:52 -0700)]
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