Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libceph: simplify our debugfs attr macro

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

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

+1 -7
+1 -7
include/linux/ceph/debugfs.h
··· 7 7 #define CEPH_DEFINE_SHOW_FUNC(name) \ 8 8 static int name##_open(struct inode *inode, struct file *file) \ 9 9 { \ 10 - struct seq_file *sf; \ 11 - int ret; \ 12 - \ 13 - ret = single_open(file, name, NULL); \ 14 - sf = file->private_data; \ 15 - sf->private = inode->i_private; \ 16 - return ret; \ 10 + return single_open(file, name, inode->i_private); \ 17 11 } \ 18 12 \ 19 13 static const struct file_operations name##_fops = { \