From patchwork Tue Nov 10 11:23:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 7589491 X-Patchwork-Delegate: ira.weiny@intel.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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D252E9F2F7 for ; Tue, 10 Nov 2015 11:23:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F3B93206E6 for ; Tue, 10 Nov 2015 11:23:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2704020495 for ; Tue, 10 Nov 2015 11:23:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752552AbbKJLXn (ORCPT ); Tue, 10 Nov 2015 06:23:43 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:36987 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752205AbbKJLXm (ORCPT ); Tue, 10 Nov 2015 06:23:42 -0500 Received: by wmww144 with SMTP id w144so71259443wmw.0 for ; Tue, 10 Nov 2015 03:23:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev_mellanox_co_il.20150623.gappssmtp.com; s=20150623; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=IebTIqHF6CtsLloVerzpwJtMp5VIvcfsBw5mJcm3nsA=; b=UWwvER9f0TptA2bqg7LP2JS/eirFOSCkkO27BkHqhhxNbuwD/vMD08fwvY3G+RoHKg YZLSClfuntQCip8+lCA11s0ymJxhOx2s5MFl8K3bMdiVxesI9qm5Tj+E38ArLSjJqqzZ GAr0TxfxlAvEOSU6//tpUwrkuYJP33vqA+wiI2RWPljh3ncdKPWM9h5rODQasgibVWHM 1mdY/VRG5X+0npdY42SdRXxteYeCGDhdi578gqpEpmKUnBcM6Mfyac2omamxyIJMALjx 6dtXVDxVCJVssMEjd6adqZ7sb1C/ArgJomqHL+moLgYxz8i46z7MD/KaWEY+k/698PPo AXiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=IebTIqHF6CtsLloVerzpwJtMp5VIvcfsBw5mJcm3nsA=; b=mEtNuhBmAhwdw65/TmAQNwZzK4YpCtPDCB0JxzThrLWwdB6icYdl1ioRQ1XCct4v9L ArCAJtUciZ992PPv3vOxOdP09/cDrnt3l3y4TXnMAR1i+AMeAKt6sOuOni0KK9wphSJZ 7QldrtN6g1l9NwTspLXOv96916xnZC6SRjCpgp60E64vZ6NAuc6tDPixzuiwGqjAlWuq 4s1GSVEciXAGpjEEHyOVU2WoseZ2zEen2fPQvELcPPt0M74P5JL6fDTtjElFIDDy8Sng DgSUh4XZI64X+mpgxyqnYvBExo4WqhIe9DSfa42yMgE/R2lOy/rm/ef7JQvCXYPHwxbq 0cRw== X-Gm-Message-State: ALoCoQlIMKgqWbzJa0VCRyDwahGccb6DH8WGbB942lEvVZFyoRQbFdNqH4UCho/F2B4mFoQbkypn X-Received: by 10.194.159.100 with SMTP id xb4mr3286752wjb.136.1447154621545; Tue, 10 Nov 2015 03:23:41 -0800 (PST) Received: from [10.222.163.115] ([193.47.165.251]) by smtp.googlemail.com with ESMTPSA id b134sm19263550wmf.9.2015.11.10.03.23.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2015 03:23:41 -0800 (PST) To: "Weiny, Ira" Cc: "linux-rdma@vger.kernel.org" From: Hal Rosenstock Subject: [PATCH infiniband-diags] ibsendtrap.c: Eliminate unused parameter from send_trap Message-ID: <5641D3BB.4090003@dev.mellanox.co.il> Date: Tue, 10 Nov 2015 13:23:39 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 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,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 src/ibsendtrap.c: In function ?send_trap?: src/ibsendtrap.c:124: warning: unused parameter ?name? 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/src/ibsendtrap.c b/src/ibsendtrap.c index 46fd6e7..659f2d2 100644 --- a/src/ibsendtrap.c +++ b/src/ibsendtrap.c @@ -121,8 +121,7 @@ static void build_trap129(ib_mad_notice_attr_t * n, ib_portid_t * port) n->data_details.ntc_129_131.port_num = (uint8_t) error_port; } -static int send_trap(const char *name, - void (*build) (ib_mad_notice_attr_t *, ib_portid_t *)) +static int send_trap(void (*build) (ib_mad_notice_attr_t *, ib_portid_t *)) { ib_portid_t sm_port; ib_portid_t selfportid; @@ -169,7 +168,7 @@ int process_send_trap(char *trap_name) for (i = 0; traps[i].trap_name; i++) if (strcmp(traps[i].trap_name, trap_name) == 0) - return send_trap(trap_name, traps[i].build_func); + return send_trap(traps[i].build_func); ibdiag_show_usage(); return 1; }