From: rread Date: Mon, 12 Jul 2004 19:50:14 +0000 (+0000) Subject: use assignment instead of memset to clear the conn_cnt. X-Git-Tag: 1.3.4~613 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b6e3ca20a1c3da58306e6b019d9240e72b14be54;p=fs%2Flustre-release.git use assignment instead of memset to clear the conn_cnt. --- diff --git a/lustre/ptlrpc/import.c b/lustre/ptlrpc/import.c index 7e471b0..cf5e0be 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);