From patchwork Mon May 5 13:31:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 4115071 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 AB6499F1E1 for ; Mon, 5 May 2014 13:32:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C588320222 for ; Mon, 5 May 2014 13:32:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 52E32201EC for ; Mon, 5 May 2014 13:32:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932517AbaEENb7 (ORCPT ); Mon, 5 May 2014 09:31:59 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:37520 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932352AbaEENb7 (ORCPT ); Mon, 5 May 2014 09:31:59 -0400 Received: by mail-wg0-f52.google.com with SMTP id l18so6450051wgh.23 for ; Mon, 05 May 2014 06:31:57 -0700 (PDT) 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=nPHG8VTBrUIrtr9jpPfepNK9eKHqv5kYYYoPFIddk7A=; b=JB33lg1EihZsz6O5kc+hhM6cdqNtcuaVGPdq8xb9kBWjJ8mcNi2rVZgmEcT2/6o2bb bPwzw5cuapZwSe/r3FJZB5PRfIThN4aQi/RTjdTJTeyglmrGm9m30ktFK16rofVNswPD vkO1OAWuLIttzOM+7eWA6I+w8G3sxHcCacp+Dy/459OGHZdeu87jHBIx6glWCCWy81Sz lwRM4vSrkRNiLq6dgcdLFwlbrp9CMwPQLPdHweQKkFMNNUpqkP9FY207jWUy4ZvC9O7n Sv7jQsDT03XuqJOOt/JZ6RGm7lpDmGqjBkLbFTJ0H/QINDmFJfZL/J0LdNiLyyC64R+z jaig== X-Gm-Message-State: ALoCoQl8HXbCcLY+883/YamiXdNjhvgmSS2iUWWobh9/DBb2znJOXV9wdJp+xAfsrM5nAeKxAaiK X-Received: by 10.180.96.225 with SMTP id dv1mr15950126wib.37.1399296717628; Mon, 05 May 2014 06:31:57 -0700 (PDT) Received: from [10.70.1.87] (bzq-218-90-50.red.bezeqint.net. [81.218.90.50]) by mx.google.com with ESMTPSA id bq12sm6835335wib.0.2014.05.05.06.31.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 05 May 2014 06:31:56 -0700 (PDT) Message-ID: <536792CA.4040707@dev.mellanox.co.il> Date: Mon, 05 May 2014 09:31:54 -0400 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: Tomer Cohen Subject: [PATCH opensm] osmtest.c: Fixed missing assignment of return value from function osmtest_get_port_rec_by_num 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.5 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: Tomer Cohen Date: Sun, 4 May 2014 11:38:01 +0300 found by Coverity Signed-off-by: Tomer Cohen Signed-off-by: Hal Rosenstock --- osmtest/osmtest.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osmtest/osmtest.c b/osmtest/osmtest.c index 857df86..d7aef60 100644 --- a/osmtest/osmtest.c +++ b/osmtest/osmtest.c @@ -5097,9 +5097,9 @@ osmtest_validate_single_port_rec_lid(IN osmtest_t * const p_osmt, memset(&context, 0, sizeof(context)); context.p_osmt = p_osmt; - osmtest_get_port_rec_by_num(p_osmt, - p_port->rec.lid, - p_port->rec.port_num, &context); + status = osmtest_get_port_rec_by_num(p_osmt, + p_port->rec.lid, + p_port->rec.port_num, &context); if (status != IB_SUCCESS) { OSM_LOG(&p_osmt->log, OSM_LOG_ERROR, "ERR 0108: " "ib_query failed (%s)\n", ib_get_err_str(status));