From patchwork Tue Oct 2 08:03:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10623159 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DC6D913BB for ; Tue, 2 Oct 2018 08:03:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D157C285B5 for ; Tue, 2 Oct 2018 08:03:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5A4E28746; Tue, 2 Oct 2018 08:03:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB662285B5 for ; Tue, 2 Oct 2018 08:03:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726935AbeJBOpb (ORCPT ); Tue, 2 Oct 2018 10:45:31 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35071 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726870AbeJBOpa (ORCPT ); Tue, 2 Oct 2018 10:45:30 -0400 Received: by mail-wm1-f68.google.com with SMTP id o18-v6so1200092wmc.0 for ; Tue, 02 Oct 2018 01:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=4AHacXO2V7FPDMua25OsbplaARmEIaxLdyRBzYgUCnU=; b=UEhD4BS/OpBHAeJlEQFEMH7RuTGGU175gPyzvFUfqlissK2jjaKxWbRmVTO0IvLZQj 9MRnwxpzFBkaCErwfa1Hx/heG3gYQKAJOw/6fX0AKnYbXfqcCr6ZWIyyjgpWRarVHaa8 26QAbK7despvtdKmoP2o/J3rQ5t293kdl1mtn7AWALmZlWBme/V8/nV2B19G7oNcbPmx bNBRv4Vca2M3/5JrHYpH89kaTc/8K+Zo+P2SO6xaslB61MIlcGStdOOXz87ft6W7wO66 HWuy1E7j+q3v9A1BQMcXonGxfrVr6JaZYw7BEWhn8wlIS3KZewCHZwvpRGRmKdpa3+db LVkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4AHacXO2V7FPDMua25OsbplaARmEIaxLdyRBzYgUCnU=; b=Xjelv9+jyBt1h9LcWPJo2ODfFhs6WJhxLUKtraClbK67ASlsNmwTK1bhs16sz7L/VL h+5piUObhZwc4mNgSucmjPZKZja4Y74SMWE0Ge6J0GnZEF+mDZuLNiLq5e4q2a0SOCIp 0U0d9mrQXEgUVHW7YAnlSphKJCi0RQIOLtyaVAGs8goKCZWDa8gfSLduMEihpFVU3k22 5kUyLvL6JTfcQTmmLJDtimMplzI9IVKJkW8ydVoXBs0z2TLUELljGiX1Auw/c+stUo0z 7R5TvEajXML1Nh2zZ90u6aGclinRuyz3jmeX8eTfoJr8sdTgQ6fuJB5aBzMyhHeQtqjR xIxg== X-Gm-Message-State: ABuFfojNqCu7YVaanA0QzOhz4bd2o/3HKXLcPZ9W2DFRcrswAmXch4h3 gi7lnMj9fYKnSByRH3ueUJU= X-Google-Smtp-Source: ACcGV63aHfvF4xzP46nFgy1uIwvw4O1kn02QUsN9/TWeXIxK7ILfj0kKGYQyRjEOO7jxO0jVo1DNvw== X-Received: by 2002:a7b:c017:: with SMTP id c23-v6mr1050998wmb.136.1538467410878; Tue, 02 Oct 2018 01:03:30 -0700 (PDT) Received: from kheib-workstation.redhat.com ([192.116.94.216]) by smtp.gmail.com with ESMTPSA id v16-v6sm24855077wrw.12.2018.10.02.01.03.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Oct 2018 01:03:30 -0700 (PDT) From: Kamal Heib To: Doug Ledford , Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, kamalheib1@gmail.com Subject: [PATCH rdma-next] RDMA/rxe: Remove unused addr_same() Date: Tue, 2 Oct 2018 11:03:10 +0300 Message-Id: <20181002080310.22961-1-kamalheib1@gmail.com> X-Mailer: git-send-email 2.14.4 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This function is not in use - delete it. Signed-off-by: Kamal Heib Reviewed-by: Leon Romanovsky --- drivers/infiniband/sw/rxe/rxe_net.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/infiniband/sw/rxe/rxe_net.c b/drivers/infiniband/sw/rxe/rxe_net.c index fb06f94f33d8..40e82e0f6c2d 100644 --- a/drivers/infiniband/sw/rxe/rxe_net.c +++ b/drivers/infiniband/sw/rxe/rxe_net.c @@ -491,11 +491,6 @@ void rxe_loopback(struct sk_buff *skb) rxe_rcv(skb); } -static inline int addr_same(struct rxe_dev *rxe, struct rxe_av *av) -{ - return rxe->port.port_guid == av->grh.dgid.global.interface_id; -} - struct sk_buff *rxe_init_packet(struct rxe_dev *rxe, struct rxe_av *av, int paylen, struct rxe_pkt_info *pkt) {