Skip to content

Commit

Permalink
libceph: simplify our debugfs attr macro
Browse files Browse the repository at this point in the history
No need to do single_open()'s job ourselves.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
  • Loading branch information
Ilya Dryomov committed Apr 20, 2015
1 parent ff7eeb8 commit 9571eb4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions include/linux/ceph/debugfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { \
Expand Down

0 comments on commit 9571eb4

Please sign in to comment.