[PATCH 24/36] fs/ecryptfs: Remove unnecessary casts of private_data

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joe Perches
Date: Monday, July 12, 2010 - 1:50 pm

Signed-off-by: Joe Perches <joe@perches.com>
---
 fs/ecryptfs/ecryptfs_kernel.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h
index 0032a9f..40186b9 100644
--- a/fs/ecryptfs/ecryptfs_kernel.h
+++ b/fs/ecryptfs/ecryptfs_kernel.h
@@ -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
-- 
1.7.1.337.g6068.dirty

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/36] Remove unnecessary casts of private_data, Joe Perches, (Mon Jul 12, 1:49 pm)
[PATCH 24/36] fs/ecryptfs: Remove unnecessary casts of pri ..., Joe Perches, (Mon Jul 12, 1:50 pm)
Re: [PATCH 11/36] drivers/media: Remove unnecessary casts ..., Laurent Pinchart, (Tue Jul 13, 1:13 am)