summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2015-03-25 21:15:17 +0300
committerIlya Dryomov <idryomov@gmail.com>2015-04-20 18:55:39 +0300
commit9571eb4f9617e89b3f979a3856b1296eba277bb1 (patch)
tree89a445d9a90e2ecbeed537933cafdfb260e3cb4a /include
parentff7eeb82cc16f25203b69f817cbbb85845c817fe (diff)
downloadlinux-9571eb4f9617e89b3f979a3856b1296eba277bb1.tar.bz2
libceph: simplify our debugfs attr macro
No need to do single_open()'s job ourselves. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include')
-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 = { \