diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c
index a3c8f3b53170daaa81659970f1a7bca16d1e529b..ce0eddc70ed03ed21510a032c6a6a9e5f0dc528f 100644
--- a/lustre/ptlrpc/client.c
+++ b/lustre/ptlrpc/client.c
@@ -868,8 +868,6 @@ int ptlrpc_expire_one_request(struct ptlrpc_request *req)
         if (replied)
                 RETURN(0);
 
-        DEBUG_REQ(D_ERROR, req, "timeout (sent at %lu)", (long)req->rq_sent); 
-
         ptlrpc_unregister_reply (req);
 
         if (obd_dump_on_timeout)
@@ -1289,7 +1287,6 @@ void ptlrpc_restart_req(struct ptlrpc_request *req)
 static int expired_request(void *data)
 {
         struct ptlrpc_request *req = data;
-        struct obd_import *imp;
         ENTRY;
 
         /* some failure can suspend regular timeouts */