diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-29 16:29:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-01 10:47:44 +0200 |
commit | 08bd45fd609a88eb4f960d8d4e4ef57163a046a1 (patch) | |
tree | 9bfdf65d8dd4ace812b58b3cc3b0d3ab65b84fe8 /drivers/staging/lustre/lustre/osc/lproc_osc.c | |
parent | staging: lustre: remove ldebugfs_seq_create() wrapper function (diff) | |
download | linux-dev-08bd45fd609a88eb4f960d8d4e4ef57163a046a1.tar.xz linux-dev-08bd45fd609a88eb4f960d8d4e4ef57163a046a1.zip |
staging: lustre: remove ldebugfs_obd_seq_create() wrapper function
It was just calling debugfs_create_file() so unwind things and just call
the real function instead. This ends up saving a number of lines as
there was never any error handling happening anyway, so that all can be
removed as well.
Cc: Oleg Drokin <oleg.drokin@intel.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Cc: James Simmons <jsimmons@infradead.org>
Cc: Quentin Bouget <quentin.bouget@cea.fr>
Cc: Ben Evans <bevans@cray.com>
Cc: NeilBrown <neilb@suse.com>
Cc: Arushi Singhal <arushisinghal19971997@gmail.com>
Cc: Arvind Yadav <arvind.yadav.cs@gmail.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Dafna Hirschfeld <dafna3@gmail.com>
Cc: Mathias Rav <mathiasrav@gmail.com>
Cc: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
Cc: Roman Storozhenko <romeusmeister@gmail.com>
Cc: lustre-devel@lists.lustre.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/osc/lproc_osc.c')
-rw-r--r-- | drivers/staging/lustre/lustre/osc/lproc_osc.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/staging/lustre/lustre/osc/lproc_osc.c b/drivers/staging/lustre/lustre/osc/lproc_osc.c index 31f49f3fca59..6a705bc5420c 100644 --- a/drivers/staging/lustre/lustre/osc/lproc_osc.c +++ b/drivers/staging/lustre/lustre/osc/lproc_osc.c @@ -801,16 +801,12 @@ static ssize_t osc_stats_seq_write(struct file *file, LPROC_SEQ_FOPS(osc_stats); -int lproc_osc_attach_seqstat(struct obd_device *dev) +void lproc_osc_attach_seqstat(struct obd_device *dev) { - int rc; - debugfs_create_file("osc_stats", 0644, dev->obd_debugfs_entry, dev, &osc_stats_fops); - rc = ldebugfs_obd_seq_create(dev, "rpc_stats", 0644, - &osc_rpc_stats_fops, dev); - - return rc; + debugfs_create_file("rpc_stats", 0644, dev->obd_debugfs_entry, dev, + &osc_rpc_stats_fops); } static struct attribute *osc_attrs[] = { |