From: Al Viro Date: Tue, 2 Sep 2014 23:42:14 +0000 (-0400) Subject: [s390] remove pointless assignment of ->f_op in vmlogrdr ->open() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6b933de642d2726245df98d076cff09bf4d34dde;p=linux-beck.git [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 --- diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index a8848db7b09d..9bb48d70957c 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/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) {