Fix ignorig errors from lprocfs_add_vars() function.
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: Ie2429f91ad5ac6de8d7e9027a0cd2907588294d3
Reviewed-on: http://review.whamcloud.com/8115
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
- rc = lprocfs_add_vars(ldlm_type_proc_dir, list, NULL);
+ rc = lprocfs_add_vars(ldlm_type_proc_dir, list, NULL);
+ if (rc != 0) {
+ CERROR("LProcFS failed in ldlm-init\n");
+ GOTO(err_svc, rc);
+ }
+err_svc:
+ lprocfs_remove(&ldlm_svc_proc_dir);
err_ns:
lprocfs_remove(&ldlm_ns_proc_dir);
err_type:
err_ns:
lprocfs_remove(&ldlm_ns_proc_dir);
err_type: