aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph/debugfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ceph/debugfs.h')
-rw-r--r--include/linux/ceph/debugfs.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/ceph/debugfs.h b/include/linux/ceph/debugfs.h
index 1df086d7882d..29cf897cc5cd 100644
--- a/include/linux/ceph/debugfs.h
+++ b/include/linux/ceph/debugfs.h
@@ -7,13 +7,7 @@
#define CEPH_DEFINE_SHOW_FUNC(name) \
static int name##_open(struct inode *inode, struct file *file) \
{ \
- struct seq_file *sf; \
- int ret; \
- \
- ret = single_open(file, name, NULL); \
- sf = file->private_data; \
- sf->private = inode->i_private; \
- return ret; \
+ return single_open(file, name, inode->i_private); \
} \
\
static const struct file_operations name##_fops = { \