summaryrefslogtreecommitdiffstats
path: root/fs/efivarfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/efivarfs')
-rw-r--r--fs/efivarfs/file.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/efivarfs/file.c b/fs/efivarfs/file.c
index aeb0368dace2..ede07fc7309f 100644
--- a/fs/efivarfs/file.c
+++ b/fs/efivarfs/file.c
@@ -12,12 +12,6 @@
#include "internal.h"
-static int efivarfs_file_open(struct inode *inode, struct file *file)
-{
- file->private_data = inode->i_private;
- return 0;
-}
-
static ssize_t efivarfs_file_write(struct file *file,
const char __user *userbuf, size_t count, loff_t *ppos)
{
@@ -104,7 +98,7 @@ out_free:
}
const struct file_operations efivarfs_file_operations = {
- .open = efivarfs_file_open,
+ .open = simple_open,
.read = efivarfs_file_read,
.write = efivarfs_file_write,
.llseek = no_llseek,
OpenPOWER on IntegriCloud