From patchwork Tue Jul 26 12:31:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1008242 X-Patchwork-Delegate: alexne@voltaire.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6QCVJOV013883 for ; Tue, 26 Jul 2011 12:31:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751242Ab1GZMbS (ORCPT ); Tue, 26 Jul 2011 08:31:18 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:52700 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751208Ab1GZMbS (ORCPT ); Tue, 26 Jul 2011 08:31:18 -0400 Received: by wwe5 with SMTP id 5so460663wwe.1 for ; Tue, 26 Jul 2011 05:31:17 -0700 (PDT) Received: by 10.227.199.68 with SMTP id er4mr4840649wbb.47.1311683477248; Tue, 26 Jul 2011 05:31:17 -0700 (PDT) Received: from [192.168.1.102] (c-71-192-10-85.hsd1.ma.comcast.net [71.192.10.85]) by mx.google.com with ESMTPS id fe4sm388300wbb.45.2011.07.26.05.31.14 (version=SSLv3 cipher=OTHER); Tue, 26 Jul 2011 05:31:16 -0700 (PDT) Message-ID: <4E2EB391.4090807@dev.mellanox.co.il> Date: Tue, 26 Jul 2011 08:31:13 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma@vger.kernel.org" Subject: [PATCH] opensm/osm_[lid pkey]_mgr.c: Remove no longer needed memset Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 26 Jul 2011 12:31:20 +0000 (UTC) at the end of PortInfo as PortInfo now takes up the full size of SMP data Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/opensm/osm_lid_mgr.c b/opensm/osm_lid_mgr.c index 4d59761..08faff0 100644 --- a/opensm/osm_lid_mgr.c +++ b/opensm/osm_lid_mgr.c @@ -838,8 +838,6 @@ static int lid_mgr_set_physp_pi(IN osm_lid_mgr_t * p_mgr, */ memcpy(payload, p_old_pi, sizeof(ib_port_info_t)); - memset(payload + sizeof(ib_port_info_t), 0, - IB_SMP_DATA_SIZE - sizeof(ib_port_info_t)); /* Should never write back a value that is bigger then 3 in diff --git a/opensm/osm_pkey_mgr.c b/opensm/osm_pkey_mgr.c index e6bf0d1..19e8210 100644 --- a/opensm/osm_pkey_mgr.c +++ b/opensm/osm_pkey_mgr.c @@ -203,8 +203,6 @@ pkey_mgr_enforce_partition(IN osm_log_t * p_log, osm_sm_t * sm, } memcpy(payload, p_pi, sizeof(ib_port_info_t)); - memset(payload + sizeof(ib_port_info_t), 0, - IB_SMP_DATA_SIZE - sizeof(ib_port_info_t)); p_pi = (ib_port_info_t *) payload; if (enforce == TRUE)