From: adilger Date: Thu, 18 Aug 2005 23:20:46 +0000 (+0000) Subject: Branch b1_4 X-Git-Tag: v1_7_140~1^12~3^2~55^5~5 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e13b3c3d02c6ec94201b25aaedbaced5fb6548a1;p=fs%2Flustre-release.git Branch b1_4 Fix valid compiler warning of unset variables. b=7138 --- diff --git a/lustre/ost/ost_handler.c b/lustre/ost/ost_handler.c index 9f43f5f..e081073 100644 --- a/lustre/ost/ost_handler.c +++ b/lustre/ost/ost_handler.c @@ -932,10 +932,10 @@ static int ost_set_info(struct obd_export *exp, struct ptlrpc_request *req) if (rc) RETURN(rc); - if (KEY_IS("evict_by_nid")) { - val = lustre_msg_buf(req->rq_reqmsg, 1, 1); - vallen = lustre_msg_buflen(req->rq_reqmsg,1); + val = lustre_msg_buf(req->rq_reqmsg, 1, 1); + vallen = lustre_msg_buflen(req->rq_reqmsg,1); + if (KEY_IS("evict_by_nid")) { if (val) obd_export_evict_by_nid(exp->exp_obd, val);