From 61038f56be879087d957e0831441f1573385f5be Mon Sep 17 00:00:00 2001 From: adilger Date: Sun, 1 Dec 2002 22:21:44 +0000 Subject: [PATCH] Fix compile warnings (hopefully nothing else is missing...) --- lustre/ptlrpc/recover.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) -- 1.8.3.1