Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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 6b933de6 c2e3f5d5

-1
-1
drivers/s390/char/vmlogrdr.c
··· 338 338 339 339 /* set the file options */ 340 340 filp->private_data = logptr; 341 - filp->f_op = &vmlogrdr_fops; 342 341 343 342 /* start recording for this service*/ 344 343 if (logptr->autorecording) {