diff options
| author | Greg Kroah-Hartman <[email protected]> | 2018-05-29 16:29:44 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-06-01 10:47:44 +0200 |
| commit | b145f49f233d73725d0857206833335a6b9bcace (patch) | |
| tree | c9f293595ea4b6426ddebf51ce83a024943f28ed /tools/perf/scripts/python | |
| parent | 08bd45fd609a88eb4f960d8d4e4ef57163a046a1 (diff) | |
staging: lustre: unwrap some ldebugfs_register() calls
When the third option (list) to ldebugfs_register() is NULL, it's the
same as just calling debugfs_create_dir(). So unwind this and call
debugfs_create_dir() directly.
This ends up saving lots of code as we do not need to do any error
checking of the return value (because it does not matter).
The ldebugfs_register() call will be removed in a later patch when it is
fully removed, right now there are 2 outstanding users of it in the
tree.
Cc: Oleg Drokin <[email protected]>
Cc: Andreas Dilger <[email protected]>
Cc: James Simmons <[email protected]>
Cc: NeilBrown <[email protected]>
Cc: Aastha Gupta <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Quentin Bouget <[email protected]>
Cc: Patrick Farrell <[email protected]>
Cc: Aliaksei Karaliou <[email protected]>
Cc: "John L. Hammond" <[email protected]>
Cc: Mathias Rav <[email protected]>
Cc: Andriy Skulysh <[email protected]>
Cc: Ben Evans <[email protected]>
Cc: Bob Glosman <[email protected]>
Cc: [email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions