Using the seq_open_data helper simplifies these to oneliners.
Signed-off-by: Rasmus Villemoes
---
Depends on 1/8 introducing seq_open_data.
fs/dlm/debug_fs.c | 44
1 file changed, 4 insertions(+), 40 deletions(-)
diff --git a/fs/dlm/debug_fs.c b/fs
There are quite a few callers of seq_open that could be simplified by
setting the ->private member via the seq_open call instead of fetching
file->private_data afterwards.
Signed-off-by: Rasmus Villemoes
---
v2:
- Fix some copy-pastos spotted by Andreas.
- Ensure everybody hit by an e