From 951f3cf48a90d884fae60b87b2c701103547cec2 Mon Sep 17 00:00:00 2001 From: shadow Date: Fri, 14 Mar 2008 06:06:20 +0000 Subject: [PATCH] fix typo in procfs cleanup. b=15209 i=green i=tappro --- lustre/mgs/lproc_mgs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lustre/mgs/lproc_mgs.c b/lustre/mgs/lproc_mgs.c index b3fae35..8ace822 100644 --- a/lustre/mgs/lproc_mgs.c +++ b/lustre/mgs/lproc_mgs.c @@ -92,11 +92,12 @@ int lproc_mgs_setup(struct obd_device *obd) int lproc_mgs_cleanup(struct obd_device *obd) { - struct mgs_obd *mgs = &obd->u.mgs; + struct mgs_obd *mgs; - if (obd) - return -EINVAL; + if (!obd) + RETURN(-EINVAL); + mgs = &obd->u.mgs; if (mgs->mgs_proc_live) { /* Should be no live entries */ LASSERT(mgs->mgs_proc_live->subdir == NULL); -- 1.8.3.1