From patchwork Thu Mar 6 13:59:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3783701 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 890FA9F370 for ; Thu, 6 Mar 2014 13:59:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BEAF02020A for ; Thu, 6 Mar 2014 13:59:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8F957201E7 for ; Thu, 6 Mar 2014 13:59:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751218AbaCFN7e (ORCPT ); Thu, 6 Mar 2014 08:59:34 -0500 Received: from mail-bk0-f49.google.com ([209.85.214.49]:47368 "EHLO mail-bk0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbaCFN7e (ORCPT ); Thu, 6 Mar 2014 08:59:34 -0500 Received: by mail-bk0-f49.google.com with SMTP id my13so690532bkb.22 for ; Thu, 06 Mar 2014 05:59:32 -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=DCyih/eS8A9FXOFCTtBODYMUQm9La0Q91jz1lfugM+A=; b=LEJEd1lYuDNxUW4ZMib6A3/kbx0T7y2iZ/HpzlNnSomJMOASrZGk5Z4ohuvxjJsXWa rcjCxQTiprIo4WwvCzpy0FXh1+DIzpti4pryfXWF0hKrmIVrqu3oMJvMQCOzzwpB7iwG mt6amyqoVzeq4y79qkjE0tTS3RvpwlIcPFQmXPaX/k/PN3q98O9rVVgcPTP7Ua3YwNxP cKUFMQThFl1RajlH6njUJ1fPkOEpe5ZULqXHJxbYNv3ncYhYPcVe4mZPz/+aMNQpLS/E 61gLf3z1DehUpzHkhlzLYUznOsvRXOHtctFeZ4XMpjc66EkUgCq0ga/XzJE27RIXP+tJ PFMA== X-Gm-Message-State: ALoCoQlz3mD9CpY+753MiamagF5BwmG+cSsVahWEOcAOiZ65S4kf8ZC5fYEC6/NAc+2gbW4qD2gU X-Received: by 10.205.71.10 with SMTP id yi10mr380238bkb.47.1394114371807; Thu, 06 Mar 2014 05:59:31 -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 tg13sm2606837bkb.10.2014.03.06.05.59.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 05:59:30 -0800 (PST) Message-ID: <53187F3F.7000306@dev.mellanox.co.il> Date: Thu, 06 Mar 2014 08:59:27 -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_state_mgr.c: Remove redundant unset to first_time_master_sweep Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Date: Thu, 18 Jul 2013 11:08:14 +0300 We should clear first_time_master_sweep anyway during the first sweep. Signed-off-by: Alex Netes --- opensm/osm_state_mgr.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/opensm/osm_state_mgr.c b/opensm/osm_state_mgr.c index 0dd89e9..06cb763 100644 --- a/opensm/osm_state_mgr.c +++ b/opensm/osm_state_mgr.c @@ -2213,7 +2213,6 @@ repeat_discovery: sm->p_subn->need_update = 0; osm_dump_all(sm->p_subn->p_osm); state_mgr_up_msg(sm); - sm->p_subn->first_time_master_sweep = FALSE; if (OSM_LOG_IS_ACTIVE_V2(sm->p_log, OSM_LOG_VERBOSE) || sm->p_subn->opt.sa_db_dump)