Skip to content
Snippets Groups Projects
Commit 9571eb4f authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

libceph: simplify our debugfs attr macro


No need to do single_open()'s job ourselves.

Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent ff7eeb82
No related branches found
No related tags found
No related merge requests found
......@@ -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 = { \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment