From patchwork Wed Dec 11 18:50:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3327621 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 51885C0D4A for ; Wed, 11 Dec 2013 18:50:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 37F0E20671 for ; Wed, 11 Dec 2013 18:50:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A2D3720654 for ; Wed, 11 Dec 2013 18:50:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750911Ab3LKSuy (ORCPT ); Wed, 11 Dec 2013 13:50:54 -0500 Received: from mail-yh0-f44.google.com ([209.85.213.44]:45396 "EHLO mail-yh0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750800Ab3LKSuy (ORCPT ); Wed, 11 Dec 2013 13:50:54 -0500 Received: by mail-yh0-f44.google.com with SMTP id f64so5396511yha.17 for ; Wed, 11 Dec 2013 10:50:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=6WdrLUAJJ5MhC/ZHMrwYnfjEzneaen4aYlWPuzfTG4U=; b=MXAqfb97csVt+tX5gpAL01FkF44wsM8DOz5aL4bmkYfUFuLA0g4KbY6FgLiGRux5AL 4wTu9UBeNZEi/VrdiuOn0eBbAOhtzWi7IkK71CMWHvqf7FUa1pnIt8JuZlng/0JsU7ox EjjxMkpY01deyoKobn9Y7p0rnHBWxQlasC03B3VqhRnj7GdjCR29kcxGcHbSpLnDXbmr 2NgjyHAPMh8LXlds79+GyBwzTaJRzxRTl7J2bt/HEKyhZPJnUsitO9w0JODc8YubhlE+ 893vccBAo5J1gCXBFMJ3ugv5XBA+qLUv/fgWxni1F3ZUiywSoaeZoTICbnZza1wpJ3k8 NP8g== X-Gm-Message-State: ALoCoQkDb/Bt23OEuO2MsPcpHHalvYwlqXkkXphyMITbBjSuDAp+iSYZp7c5x0EiVoRSd/HDlBTk X-Received: by 10.236.199.81 with SMTP id w57mr2300401yhn.139.1386787853482; Wed, 11 Dec 2013 10:50:53 -0800 (PST) Received: from [192.168.1.102] (c-98-229-118-119.hsd1.ma.comcast.net. [98.229.118.119]) by mx.google.com with ESMTPSA id l65sm21001252yhk.1.2013.12.11.10.50.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Dec 2013 10:50:52 -0800 (PST) Message-ID: <52A8B406.1000805@dev.mellanox.co.il> Date: Wed, 11 Dec 2013 13:50:46 -0500 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Vladimir Koushnir Subject: [PATCH opensm] osm_pkey.[h c]: Remove dead function osm_pkey_tbl_clear_accum_pkeys Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Vladimir Koushnir Signed-off-by: Vladimir Koushnir Signed-off-by: Hal Rosenstock --- include/opensm/osm_pkey.h | 23 ----------------------- opensm/osm_pkey.c | 15 --------------- 2 files changed, 0 insertions(+), 38 deletions(-) diff --git a/include/opensm/osm_pkey.h b/include/opensm/osm_pkey.h index 9459b5b..090a8be 100644 --- a/include/opensm/osm_pkey.h +++ b/include/opensm/osm_pkey.h @@ -340,29 +340,6 @@ osm_pkey_tbl_set_accum_pkeys(IN osm_pkey_tbl_t * p_pkey_tbl, * *********/ -/****f* OpenSM: osm_pkey_tbl_clear_accum_pkeys -* NAME -* osm_pkey_tbl_clear_accum_pkeys -* -* DESCRIPTION -* Clears the given pkey in the "accum_pkeys" array -* -* SYNOPSIS -*/ -void -osm_pkey_tbl_clear_accum_pkeys(IN osm_pkey_tbl_t * p_pkey_tbl, - IN uint16_t pkey); -/* -* p_pkey_tbl -* [in] Pointer to the PKey table -* -* pkey -* [in] PKey to clear -* -* NOTES -* -*********/ - /****f* OpenSM: osm_pkey_tbl_set_new_entry * NAME * osm_pkey_tbl_set_new_entry diff --git a/opensm/osm_pkey.c b/opensm/osm_pkey.c index fe0a946..9e7e96f 100644 --- a/opensm/osm_pkey.c +++ b/opensm/osm_pkey.c @@ -235,21 +235,6 @@ void osm_pkey_find_last_accum_pkey_index(IN osm_pkey_tbl_t * p_pkey_tbl) } /* - Clears the given pkey (along with it's overall index) in the accum_pkeys array. -*/ -void osm_pkey_tbl_clear_accum_pkeys(IN osm_pkey_tbl_t * p_pkey_tbl, - IN uint16_t pkey) -{ - void *ptr; - - ptr = cl_map_remove(&p_pkey_tbl->accum_pkeys, pkey); - if (ptr == NULL) - return; - - osm_pkey_find_last_accum_pkey_index(p_pkey_tbl); -} - -/* Store the given pkey in the "new" blocks array. Also, make sure the regular block exists. */