Browse Source

[s390] remove pointless assignment of ->f_op in vmlogrdr ->open()

The only way we can get to that function is from misc_open(), after
the latter has set file->f_op to exactly the same value we are
(re)assigning there.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 11 năm trước cách đây
mục cha
commit
6b933de642
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      drivers/s390/char/vmlogrdr.c

+ 0 - 1
drivers/s390/char/vmlogrdr.c

@@ -338,7 +338,6 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
 
 	/* set the file options */
 	filp->private_data = logptr;
-	filp->f_op = &vmlogrdr_fops;
 
 	/* start recording for this service*/
 	if (logptr->autorecording) {