From patchwork Mon Dec 3 15:25:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1834291 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 52B503FC5A for ; Mon, 3 Dec 2012 15:26:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752982Ab2LCP0B (ORCPT ); Mon, 3 Dec 2012 10:26:01 -0500 Received: from mail-la0-f46.google.com ([209.85.215.46]:40738 "EHLO mail-la0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713Ab2LCP0B (ORCPT ); Mon, 3 Dec 2012 10:26:01 -0500 Received: by mail-la0-f46.google.com with SMTP id p5so2365349lag.19 for ; Mon, 03 Dec 2012 07:26:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=GklWKiyNxryqFFEJ5MPwI52uz9pVlpBcPs/dRO8xOag=; b=VpnxhlSMiObuccy08hPp1ckC76Bk/mhr5E4nD64iufPpl72pI7V4lWeamnr53vT5Ys vgPP7k+BZczoyLC6BkpBT+taSakHVauFzjxl3aD+X+3+QXtpZOze195+ihbb8pPUtV86 vU7vTxx6ft4CH8HWkI5uMJOZlrfHOKmieTql9Yn9uxiw6L3CZPMs37PBYVhU2WRANLku rTw3H4HHeSB4oxMqVOOndBYA+f4RcnDK3dOFaVdxClvir9XoMsM+ucwg8V1ZIuBpGkkA JRNyJ3sdrt9Uo4fkSnwFC9SuSm2BmdHUBM828kaVzTxtM5UZrcu49cLJspeWnYgEigs1 UEwg== Received: by 10.112.23.34 with SMTP id j2mr2037541lbf.118.1354548360379; Mon, 03 Dec 2012 07:26:00 -0800 (PST) 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 er8sm5576685lbb.9.2012.12.03.07.25.58 (version=SSLv3 cipher=OTHER); Mon, 03 Dec 2012 07:25:59 -0800 (PST) Message-ID: <50BCC485.5060200@dev.mellanox.co.il> Date: Mon, 03 Dec 2012 10:25:57 -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: Alex Netes CC: "linux-rdma (linux-rdma@vger.kernel.org)" , Dan Ben-Yosef Subject: [PATCH] opensm/osm_ucast_ftree.c: Remove duplicate free in fabric_create_leaf_switch_array X-Gm-Message-State: ALoCoQmDgkQ1pOmT1DgwzeffkcXbd2brMo7y2sjSs+RvFM7+qUR54xd7N1yqFlfJQtIqgi+rUUnn Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Dan Ben-Yosef Signed-off-by: Hal Rosenstock --- opensm/osm_ucast_ftree.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/opensm/osm_ucast_ftree.c b/opensm/osm_ucast_ftree.c index 532a29f..133fd4f 100644 --- a/opensm/osm_ucast_ftree.c +++ b/opensm/osm_ucast_ftree.c @@ -1689,7 +1689,6 @@ static int fabric_create_leaf_switch_array(IN ftree_fabric_t * p_ftree) if (!p_ftree->leaf_switches) { osm_log_v2(&p_ftree->p_osm->log, OSM_LOG_SYS, FILE_ID, "Fat-tree routing: Memory allocation failed\n"); - free(all_switches_at_leaf_level); res = -1; goto Exit; }