From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85EF7C433C1 for ; Sat, 27 Mar 2021 09:07:03 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EDDD3619FC for ; Sat, 27 Mar 2021 09:07:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDDD3619FC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9FBD582E79; Sat, 27 Mar 2021 09:07:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zUP4j-LU5D-J; Sat, 27 Mar 2021 09:07:02 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTP id 96B1784BAA; Sat, 27 Mar 2021 09:07:01 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 739A3C000C; Sat, 27 Mar 2021 09:07:01 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0C7F0C000A for ; Sat, 27 Mar 2021 09:07:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id DFF2541899 for ; Sat, 27 Mar 2021 09:06:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r6-hldXlTmpE for ; Sat, 27 Mar 2021 09:06:58 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by smtp4.osuosl.org (Postfix) with ESMTPS id 7E99B41896 for ; Sat, 27 Mar 2021 09:06:58 +0000 (UTC) Received: by mail-qk1-x72f.google.com with SMTP id x14so7727072qki.10 for ; Sat, 27 Mar 2021 02:06:58 -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=3xFUEEjk1R6V954kOkR3VitDD2VOgrO9rQoJENyduVM=; b=tVd4FNWFbtE1uVol006rHitU7OnzHtpqv2PWXpH/WaU7RVXQ4QsFqTFqnYncHwxEAH jMy25cGOKWmDvkEnwuuaFc13Z+koWevLCH5H3VJjgaeMnL6vpG0tpTlLWrXHRsHNTM1F ZU/p4106B1OdoAau7ReKXMO7WY/ALV3seN2/yPOhY9yb27OB4ek8JzUSOghWnBQuXgAm Z50UJ1NXHd3FvKL3/0gNShW9urkUjJ92omGcP8mitYYclDiTyUsXVaZyrMSVGgJ1+WIA tgzm0x6ZPY4Vq7l57N5DfkUi/ErYKVK0sA/EHOnWr8vo7HNlvfh30dy/UzY8klfXoemV wkzQ== 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=3xFUEEjk1R6V954kOkR3VitDD2VOgrO9rQoJENyduVM=; b=Aajm56/GKnMAsvbHZdTFyLg5ZTeOcoIDAt/fqgxGSa3yqpro0M0gz2wZOc/thJ4P3m Mgu0m7p1/pm5tDpXv/vZufJWOMcO+B3kP51xLt57hg4HSSHJWrl7BzBiGHFIpG3swVY4 p7Iapbbop97kkEaEt+oh64wD8w94dvScRVGhL9sR/+MhBO/Efwym5anfH31zddHMYi6H SBW1nG4SXKsRbMXDopkML2vEdAg9lM9o4qu69ocJUxpRW7guljpbIs5wLZ4Bu6VWfTnY mJiQJF2tmVHuPjs5QB/UcGG19AM5u2cjw3VPCg/Ae87qZFO2wgR06wehBTF9jcYXZ57V Ycig== X-Gm-Message-State: AOAM532Xu9QYCib6NpxjbtyONsGuJmoZtrj5b7+pCXs3sDJ0a+RMTXTO nr9CPO7L6MBBXmsLgP3zYR2BGFmRL3s= X-Google-Smtp-Source: ABdhPJwdo+J1vyCPh/ULDa+uc5x+NQEISd2er7Y6uUPd5uMhb02hSKnBeSRosTMAzfxCLjNMsOJiUQ== X-Received: by 2002:a05:620a:11ad:: with SMTP id c13mr16877152qkk.282.1616836017124; Sat, 27 Mar 2021 02:06:57 -0700 (PDT) Received: from localhost.localdomain ([50.236.19.102]) by smtp.gmail.com with ESMTPSA id c19sm8064126qkl.78.2021.03.27.02.06.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Mar 2021 02:06:56 -0700 (PDT) From: xiangxia.m.yue@gmail.com To: iommu@lists.linux-foundation.org Subject: [PATCH] iommu: remove unused variable 'ops' Date: Sat, 27 Mar 2021 17:02:25 +0800 Message-Id: <20210327090225.22737-1-xiangxia.m.yue@gmail.com> X-Mailer: git-send-email 2.15.0 X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" From: Tonghao Zhang ops was not used in iommu_bus_init, remove it now. Signed-off-by: Tonghao Zhang --- drivers/iommu/iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index d0b0a15dba84..99462531a5ff 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -1799,7 +1799,7 @@ int bus_iommu_probe(struct bus_type *bus) return ret; } -static int iommu_bus_init(struct bus_type *bus, const struct iommu_ops *ops) +static int iommu_bus_init(struct bus_type *bus) { struct notifier_block *nb; int err; @@ -1860,7 +1860,7 @@ int bus_set_iommu(struct bus_type *bus, const struct iommu_ops *ops) bus->iommu_ops = ops; /* Do IOMMU specific setup for this bus-type */ - err = iommu_bus_init(bus, ops); + err = iommu_bus_init(bus); if (err) bus->iommu_ops = NULL; -- 2.14.1 _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu