From patchwork Wed Dec 11 18:44:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3327601 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4CFD59F37A for ; Wed, 11 Dec 2013 18:44:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 44496207F4 for ; Wed, 11 Dec 2013 18:44:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08824207CE for ; Wed, 11 Dec 2013 18:44:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750922Ab3LKSom (ORCPT ); Wed, 11 Dec 2013 13:44:42 -0500 Received: from mail-ee0-f42.google.com ([74.125.83.42]:33653 "EHLO mail-ee0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836Ab3LKSom (ORCPT ); Wed, 11 Dec 2013 13:44:42 -0500 Received: by mail-ee0-f42.google.com with SMTP id e53so3104259eek.29 for ; Wed, 11 Dec 2013 10:44:41 -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=GIAVgRaOIYUeMhDYoRqLnnc5nXt9AtT3M9/eF0jGumE=; b=JPo2MK7nn0dmmluoyYWZxRxiND8o33pYgkIlGZYl5MEcJL9snaH48rb4lgP3KJPhnv dvJyCjxWrj/EsYqgC2QbvVJMa9E59Qo/qh6bhToLmQlSRcPCbWfuCDjwF7zL/WozSHIF 7++lzG7R+qIsPX0UTdz8/o94VC11hHYa8F6AnZQhlBZhOTQRcK/AtzBQkZvgGYhjTmTt e5RnWuEs7s/Qcg1o0Rny3zR7S9WaMadgdTrWiHpUuDlbQZOc6HP/F77pDpBSAtBzXTCi lnFc8UwOal4W1Xe1dTsPMY5Qkxf4WzwCfLG4OcShrBQOTIXs/xy/Dvm7hL2MsMwqs6vs kLsQ== X-Gm-Message-State: ALoCoQnp+yv+nOSEb8fbVGL8c+D5/+9yNPC77qtTz+gebxyquGjEsL0jBSdPpvIrTcKpMAX9HLHJ X-Received: by 10.15.61.134 with SMTP id i6mr3488533eex.48.1386787481280; Wed, 11 Dec 2013 10:44:41 -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 h3sm56659300eem.15.2013.12.11.10.44.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 11 Dec 2013 10:44:40 -0800 (PST) Message-ID: <52A8B296.8010401@dev.mellanox.co.il> Date: Wed, 11 Dec 2013 13:44:38 -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: Alex Netes Subject: [PATCH opensm] osm_mtree.c: Cosmetic change in osm_mtree_destroy 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: Alex Netes max_children defined to be less or equal to switch number of ports, so uint8_t should be enough. Signed-off-by: Alex Netes Signed-off-by: Hal Rosenstock --- opensm/osm_mtree.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opensm/osm_mtree.c b/opensm/osm_mtree.c index cb32276..218f557 100644 --- a/opensm/osm_mtree.c +++ b/opensm/osm_mtree.c @@ -83,7 +83,7 @@ osm_mtree_node_t *osm_mtree_node_new(IN osm_switch_t * p_sw) void osm_mtree_destroy(IN osm_mtree_node_t * p_mtn) { - uint32_t i; + uint8_t i; if (p_mtn == NULL) return;