From: adilger Date: Sun, 1 Dec 2002 22:21:44 +0000 (+0000) Subject: Fix compile warnings (hopefully nothing else is missing...) X-Git-Tag: 0.5.18~5 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=61038f56be879087d957e0831441f1573385f5be;p=fs%2Flustre-release.git Fix compile warnings (hopefully nothing else is missing...) --- diff --git a/lustre/ptlrpc/recover.c b/lustre/ptlrpc/recover.c index 9dddf78..fbfebe7 100644 --- a/lustre/ptlrpc/recover.c +++ b/lustre/ptlrpc/recover.c @@ -214,7 +214,7 @@ static int resend_type(struct ptlrpc_request *req, __u64 committed) int ptlrpc_resend(struct obd_import *imp) { - int rc = 0, type; + int rc = 0; struct list_head *tmp, *pos; struct ptlrpc_request *req; __u64 committed = imp->imp_peer_committed_transno; @@ -229,7 +229,7 @@ int ptlrpc_resend(struct obd_import *imp) list_for_each_safe(tmp, pos, &imp->imp_sending_list) { req = list_entry(tmp, struct ptlrpc_request, rq_list); - + switch(resend_type(req, committed)) { case NO_RESEND: break; @@ -253,11 +253,12 @@ int ptlrpc_resend(struct obd_import *imp) DEBUG_REQ(D_HA, req, "RESEND:"); ptlrpc_resend_req(req); break; - + default: LBUG(); } } + RETURN(rc); } void ptlrpc_wake_delayed(struct obd_import *imp)