瀏覽代碼

fs/ecryptfs: Remove unnecessary casts of private_data

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Joe Perches 14 年之前
父節點
當前提交
0c6d7d5da2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/ecryptfs/ecryptfs_kernel.h

+ 1 - 1
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