From: tappro Date: Fri, 15 Sep 2006 16:15:20 +0000 (+0000) Subject: small fixes X-Git-Tag: v1_8_0_110~486^2~934 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=658fd24b92ae80a1224a0d78efc3ecf9a13eea42;p=fs%2Flustre-release.git small fixes --- diff --git a/lustre/lmv/lmv_intent.c b/lustre/lmv/lmv_intent.c index c1062bc..0453db8 100644 --- a/lustre/lmv/lmv_intent.c +++ b/lustre/lmv/lmv_intent.c @@ -90,8 +90,7 @@ int lmv_intent_remote(struct obd_export *exp, void *lmm, /* we got LOOKUP lock, but we really need attrs */ pmode = it->d.lustre.it_lock_mode; if (pmode) { - memcpy(&plock, &it->d.lustre.it_lock_handle, - sizeof(plock)); + memcpy(&plock, &it->d.lustre.it_lock_handle, sizeof(plock)); it->d.lustre.it_lock_mode = 0; it->d.lustre.it_data = 0; } diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 3bec9fc..bed94d5 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -156,7 +156,7 @@ static int lmv_notify(struct obd_device *obd, struct obd_device *watched, { struct lmv_obd *lmv = &obd->u.lmv; struct obd_uuid *uuid; - int rc; + int rc = 0; ENTRY; if (strcmp(watched->obd_type->typ_name, LUSTRE_MDC_NAME)) {