diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2018-10-05 08:42:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-10-11 06:12:54 -0400 |
commit | e967b8bdd462def829b1722ea2f0babdc9806bc2 (patch) | |
tree | 2d89c83e0f846372d1e0e75926644f3f9e828279 /drivers/hwtracing/stm | |
parent | 25e3c0062a089544a861f72287a1fa3ce34b00b7 (diff) |
stm class: Clean up stp_configfs_init
Minor code shortening, no functional changes.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Tested-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing/stm')
-rw-r--r-- | drivers/hwtracing/stm/policy.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c index 530448bd5a34..a505f055f464 100644 --- a/drivers/hwtracing/stm/policy.c +++ b/drivers/hwtracing/stm/policy.c | |||
@@ -461,13 +461,9 @@ void stp_policy_node_put(struct stp_policy_node *policy_node) | |||
461 | 461 | ||
462 | int __init stp_configfs_init(void) | 462 | int __init stp_configfs_init(void) |
463 | { | 463 | { |
464 | int err; | ||
465 | |||
466 | config_group_init(&stp_policy_subsys.su_group); | 464 | config_group_init(&stp_policy_subsys.su_group); |
467 | mutex_init(&stp_policy_subsys.su_mutex); | 465 | mutex_init(&stp_policy_subsys.su_mutex); |
468 | err = configfs_register_subsystem(&stp_policy_subsys); | 466 | return configfs_register_subsystem(&stp_policy_subsys); |
469 | |||
470 | return err; | ||
471 | } | 467 | } |
472 | 468 | ||
473 | void __exit stp_configfs_exit(void) | 469 | void __exit stp_configfs_exit(void) |