From patchwork Thu Jan 24 14:45:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2032141 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 97EEC3FD56 for ; Thu, 24 Jan 2013 14:45:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752983Ab3AXOpD (ORCPT ); Thu, 24 Jan 2013 09:45:03 -0500 Received: from mail-qc0-f172.google.com ([209.85.216.172]:34118 "EHLO mail-qc0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753311Ab3AXOpC (ORCPT ); Thu, 24 Jan 2013 09:45:02 -0500 Received: by mail-qc0-f172.google.com with SMTP id b25so4211181qca.31 for ; Thu, 24 Jan 2013 06:45:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:content-type:content-transfer-encoding:x-gm-message-state; bh=AuLdIXYQebQEteyma0+bUfWE0mAYAiUzOYu5h/aTc8Q=; b=fMo/W1xsRoZWQEgxcX0fwQz79M6gDxJ2egU4Xwm73hhGgPdK+8xHFjsDXCJo2zxhXC rBo0imH1pLtQILNljmoRhRLF99+uHNltRsF9qyTO0gW42pH5aNkA/x8u2qlYdoietwq5 byqO81IwsEHpyoTrqimz68di2IsWxEPBj2BTLdW5DvB1XOva8dZVKqX3NIHYgScSr3NW ejTPYe43WLsmpv1pAwRXppVlcF0IWy+5jNHxsbsmjuCIrxLXM6LkZ16PwugM0zZOc9tv AGTh5IuFJ85apTxb3pJCRvZdb56ElkFCYknQexA/EmpRj4vg0d1bgUdxvh9sBS2UcSil zc2A== X-Received: by 10.224.39.139 with SMTP id g11mr2231633qae.35.1359038700055; Thu, 24 Jan 2013 06:45:00 -0800 (PST) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPS id hr1sm15078298qeb.3.2013.01.24.06.44.58 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jan 2013 06:44:59 -0800 (PST) Message-ID: <5101491C.9060607@dev.mellanox.co.il> Date: Thu, 24 Jan 2013 09:45:48 -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)" Subject: [PATCH] opensm/osm_dump.c: Remove incorrect assert X-Gm-Message-State: ALoCoQnyv6sIJLcwFpSGnSOdg0mY3aiCJrf4r450dwZ7kwnE5R+VyU/TX+ks14hULMz7QMOD4wgj Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org In dump_sl2vl_tbl, no need to check remote physp for CA and router ports. It's not used in code flow there. 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_dump.c b/opensm/osm_dump.c index b29d957..69cc360 100644 --- a/opensm/osm_dump.c +++ b/opensm/osm_dump.c @@ -524,7 +524,6 @@ static void dump_sl2vl_tbl(cl_map_item_t * item, FILE * file, void *cxt) } } else { p_physp = p_port->p_physp; - CL_ASSERT(p_physp->p_remote_physp); p_tbl = osm_physp_get_slvl_tbl(p_physp, 0); for (i = 0, n = 0; i < 16; i++) n += sprintf(buf + n, " %-2d",