From b6e3ca20a1c3da58306e6b019d9240e72b14be54 Mon Sep 17 00:00:00 2001
From: rread <rread>
Date: Mon, 12 Jul 2004 19:50:14 +0000
Subject: [PATCH] use assignment instead of memset to clear the conn_cnt.

---
 lustre/ptlrpc/import.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lustre/ptlrpc/import.c b/lustre/ptlrpc/import.c
index 7e471b0fc8..cf5e0bef6a 100644
--- a/lustre/ptlrpc/import.c
+++ b/lustre/ptlrpc/import.c
@@ -630,7 +630,7 @@ int ptlrpc_disconnect_import(struct obd_import *imp)
 out:
         IMPORT_SET_STATE_NOLOCK(imp, LUSTRE_IMP_CLOSED);
         memset(&imp->imp_remote_handle, 0, sizeof(imp->imp_remote_handle));
-        memset(&imp->imp_conn_cnt, 0, sizeof(imp->imp_conn_cnt));
+        imp->imp_conn_cnt = 0;
         spin_unlock_irqrestore(&imp->imp_lock, flags);
 
         RETURN(rc);
-- 
GitLab