1
0
Fork 0

libceph: simplify our debugfs attr macro

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

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
hifive-unleashed-5.1
Ilya Dryomov 2015-03-25 21:15:17 +03:00
parent ff7eeb82cc
commit 9571eb4f96
1 changed files with 1 additions and 7 deletions

View File

@ -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 = { \