Whamcloud - gitweb
LU-9679 lustre: avoid cast of file->private_data
[fs/lustre-release.git] / lustre / obdclass / lu_ref.c
index e0a7579..cf674a9 100644 (file)
@@ -395,7 +395,8 @@ static int lu_ref_seq_open(struct inode *inode, struct file *file)
 
 static int lu_ref_seq_release(struct inode *inode, struct file *file)
 {
-       struct lu_ref *ref = ((struct seq_file *)file->private_data)->private;
+       struct seq_file *m = file->private_data;
+       struct lu_ref *ref = m->private;
 
        spin_lock(&lu_ref_refs_guard);
        list_del_init(&ref->lf_linkage);