Skip to content
Snippets Groups Projects
Commit 951f3cf4 authored by Alexey Lyashkov's avatar Alexey Lyashkov
Browse files

fix typo in procfs cleanup.

b=15209
i=green
i=tappro
parent f0049ccb
No related branches found
No related tags found
No related merge requests found
...@@ -92,11 +92,12 @@ int lproc_mgs_setup(struct obd_device *obd) ...@@ -92,11 +92,12 @@ int lproc_mgs_setup(struct obd_device *obd)
int lproc_mgs_cleanup(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) if (!obd)
return -EINVAL; RETURN(-EINVAL);
mgs = &obd->u.mgs;
if (mgs->mgs_proc_live) { if (mgs->mgs_proc_live) {
/* Should be no live entries */ /* Should be no live entries */
LASSERT(mgs->mgs_proc_live->subdir == NULL); LASSERT(mgs->mgs_proc_live->subdir == NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment