From: adilger Date: Tue, 12 Nov 2002 00:01:11 +0000 (+0000) Subject: Remove lprocfs wierdness. X-Git-Tag: 0.5.17~29 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=fa84dae2465ca1c2ff1e3f09efc95335e37cfe4f;p=fs%2Flustre-release.git Remove lprocfs wierdness. --- diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index fe40668..51ad1b1 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -174,10 +174,8 @@ int class_register_type(struct obd_ops *ops, struct lprocfs_vars* vars, char *nm memcpy(type->typ_ops, ops, sizeof(*type->typ_ops)); strcpy(type->typ_name, nm); rc = lprocfs_reg_class(type, (struct lprocfs_vars*)vars, (void*)type); - if(rc) - RETURN(rc); - - RETURN(0); + + RETURN(rc); } int class_unregister_type(char *nm)