From fa84dae2465ca1c2ff1e3f09efc95335e37cfe4f Mon Sep 17 00:00:00 2001 From: adilger Date: Tue, 12 Nov 2002 00:01:11 +0000 Subject: [PATCH] Remove lprocfs wierdness. --- lustre/obdclass/genops.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) -- 1.8.3.1